====== Selection ======
Property of [[:scripting:api:text-view:start|ITextView]]
===== Description =====
Returns current cursor position
===== Property type =====
Read-Write Property of type **[[:scripting:api:range:overview|IRange]]**
===== Syntax =====
==== JavaScript ====
var pSelection = TextView.Selection;
TextView.Selection = pSelection;
==== Visual Basic Script ====
pSelection = TextView.Selection
TextView.Selection = pSelection
==== C++ ====
CComPtr ppSelection;
HRESULT hr = TextView.get_Selection(&ppSelection);
hr = TextView.put_Selection(ppSelection);
===== See Also =====
[[:scripting:api:text-view:start|ITextView]]
~~NOTOC~~