Selection

Property of ITextView

Description

Returns current cursor position

Property type

Read-Write Property of type IRange

Syntax

JavaScript

var pSelection = TextView.Selection;
TextView.Selection = pSelection;

Visual Basic Script

pSelection = TextView.Selection
TextView.Selection = pSelection

C++

CComPtr<ISelection> ppSelection;
HRESULT hr = TextView.get_Selection(&ppSelection);
hr = TextView.put_Selection(ppSelection);

See Also

ITextView