Input for WinForms | ComponentOne
C1.Win.Accessibility.Items.BaseInterfaces Namespace / IUiaTextProvider Interface / GetSelection Method

In This Topic
    GetSelection Method (IUiaTextProvider)
    In This Topic
    Retrieves the current selection. For providers that have the concept of text selection the provider should implement this method and also return true for the SupportsTextSelection property below. Otherwise this method should throw an InvalidOperation exception. For providers that support multiple disjoint selection, this should return an array of all the currently selected ranges. Providers that don't support multiple disjoint selection should just return an array containing a single range.
    Syntax
    'Declaration
     
    
    Function GetSelection() As ITextRangeProvider()
    ITextRangeProvider[] GetSelection()

    Return Value

    The range of text that is selected, or possibly null if there is no selection.
    See Also