'Declaration
Function GetVisibleRanges() As ITextRangeProvider()
ITextRangeProvider[] GetVisibleRanges()
Return Value
The ranges of text that are visible, or possibly an empty array if there is no visible text whatsoever. Text in the range may still be obscured by an overlapping window. Also, portions of the range at the beginning, in the middle, or at the end may not be visible because they are scrolled off to the side. Providers should ensure they return at most a range from the beginning of the first line with portions visible through the end of the last line with portions visible.