GetSelection Method (IUiaEdit)
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
Return Value
The range of text that is selected, or possibly null if there is no selection.
See Also