Skip to main content
This method returns the beginning and the end cursor position of the selection. If selection is undefined, all the properties of the output EditorPosition objects are equal to -1.

Syntax

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 _
)

Parameters

From [out] Contains the cursor position of the beginning of the selection as an EditorPosition object. To [out] Contains the cursor position of the end of the selection as an EditorPosition object.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

See also

TextEditor SetSelection