scripting:api:text-view:visible-area

VisibleArea

Property of ITextView

Get visible text range

Read-Only Property of type IRange

var pRange = TextView.VisibleArea;
pRange = TextView.VisibleArea
CComPtr<IRange> pRange;
HRESULT hr = TextView.get_VisibleArea(&pRange);