Export (0) Print
Expand All

ITextRangeProvider.GetEnclosingElement Method

Returns the innermost control that encloses the text range.

Namespace:  System.Windows.Automation.Provider
Assembly:  UIAutomationProvider (in UIAutomationProvider.dll)

IRawElementProviderSimple GetEnclosingElement()

Return Value

Type: System.Windows.Automation.Provider.IRawElementProviderSimple
The enclosing control, typically the text provider that supplies the text range. However, if the text provider supports child elements such as tables or hyperlinks, then the enclosing element could be a descendant of the text provider.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft