GetSelection Method of the TextEditor Object

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

9/17/2024 3:14:40 PM

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.