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. ====== GetWordFromPos ====== Method of [[:scripting:api:text-view:start|ITextView]] ===== Description ===== Returns range of word intersecting the position ===== Parameters ===== * [[:scripting:api:position:start|IPosition]] **pt** ==== Return Value ==== * [[:scripting:api:range:overview|IRange]] **ppRange** ===== Syntax ===== ==== JavaScript ==== <code javascript> var ppRange = TextView.GetWordFromPos(pt); </code>==== Visual Basic Script ==== <code vb> ppRange = TextView.GetWordFromPos pt </code>==== C++ ==== <code cpp> CComPtr<IRange> pRange; HRESULT hr = TextView.GetWordFromPos(pt, &pRange); </code>===== See Also ===== [[:scripting:api:text-view:start|ITextView]] ~~NOTOC~~