Show pageOld revisionsBacklinksAdd to bookBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== 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 ==== <code javascript> var pSelection = TextView.Selection; TextView.Selection = pSelection; </code>==== Visual Basic Script ==== <code vb> pSelection = TextView.Selection TextView.Selection = pSelection </code>==== C++ ==== <code cpp> CComPtr<ISelection> ppSelection; HRESULT hr = TextView.get_Selection(&ppSelection); hr = TextView.put_Selection(ppSelection); </code>===== See Also ===== [[:scripting:api:text-view:start|ITextView]] ~~NOTOC~~