跳轉到主要內容
此方法會傳回目前選取範圍的起始與結束游標位置。若未定義選取範圍,則輸出 EditorPosition 物件的所有屬性值皆為 -1。

語法

C++

HRESULT GetSelection(
  IEditorPosition** From,
  IEditorPosition** To
);

C#

HRESULT GetSelection(
  out IEditorPosition From,
  out IEditorPosition To
);

Visual Basic .NET

Sub GetSelection( _
  ByRef From As IEditorPosition, _
  ByRef To As IEditorPosition _
)

參數

From [out] 包含選取範圍起始處的游標位置,以 EditorPosition 物件表示。 To [out] 包含選取範圍結束處的游標位置,以 EditorPosition 物件表示。

回傳值

這個方法沒有特定的回傳值。它會回傳 ABBYY FineReader Engine 函式的標準回傳值

另請參見

TextEditor SetSelection