Input for WinForms | ComponentOne
C1.Win.Accessibility.Items Namespace / IUiaEdit Interface / GetVisibleRanges Method

In This Topic
    GetVisibleRanges Method (IUiaEdit)
    In This Topic
    Retrieves the visible ranges of text.
    Syntax
    '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.
    See Also