Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt

Use this file to discover all available pages before exploring further.

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