scripting:api:text-view:current-word

CurrentWord

Property of ITextView

Get current word range

Read-Only Property of type IRange

var pRange = TextView.CurrentWord;
pRange = TextView.CurrentWord
CComPtr<IRange> pRange;
HRESULT hr = TextView.get_CurrentWord(&pRange);