メインコンテンツへスキップ
このメソッドは、選択範囲の開始カーソル位置と終了カーソル位置を返します。選択範囲が未定義の場合、出力 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 _
)

パラメーター

開始位置 [out] 選択範囲の先頭のカーソル位置を、EditorPosition オブジェクトとして格納します。 終了位置 [out] 選択範囲の末尾のカーソル位置を、EditorPosition オブジェクトとして格納します。

戻り値

このメソッドに固有の戻り値はありません。ABBYY FineReader Engine 関数の標準的な戻り値が返されます。

関連項目

TextEditor SetSelection