這裏是:
[Quest.PowerGUI.SDK.ScriptEditorFactory]::CurrentInstance.CurrentDocumentWindow.Document.CaretCharacter
你怎麼能自己發現?
$a = [Quest.PowerGUI.SDK.ScriptEditorFactory]::CurrentInstance.CurrentDocumentWindow.Document
$a |Get-Member
給
TypeName: Quest.PowerGUI.SDK.Document
Name MemberType Definition
---- ---------- ----------
Append Method System.Void Append(string text)
EnsureVisible Method System.Void EnsureVisible(int lineNumber)
Equals Method bool Equals(System.Object obj)
GetHashCode Method int GetHashCode()
GetType Method type GetType()
Insert Method System.Void Insert(string text, int lineNumber, int charNumber)
Select Method System.Void Select(int startLine, int startCharacter, int endLine, int endCharacter)
SetCaretPosition Method System.Void SetCaretPosition(int lineNumber, int charNumber)
ToString Method string ToString()
CaretCharacter Property System.Int32 CaretCharacter {get;set;}
CaretLine Property System.Int32 CaretLine {get;set;}
IsSaved Property System.Boolean IsSaved {get;}
Lines Property Quest.PowerGUI.SDK.LineCollection Lines {get;}
Path Property System.String Path {get;}
SelectedText Property System.String SelectedText {get;set;}
Text Property System.String Text {get;set;}