ITextRangeProvider.GetEnclosingElement 方法

定义

返回包含该文本范围的最内层控件。

public:
 System::Windows::Automation::Provider::IRawElementProviderSimple ^ GetEnclosingElement();
public System.Windows.Automation.Provider.IRawElementProviderSimple GetEnclosingElement ();
abstract member GetEnclosingElement : unit -> System.Windows.Automation.Provider.IRawElementProviderSimple
Public Function GetEnclosingElement () As IRawElementProviderSimple

返回

IRawElementProviderSimple

包含控件,通常是提供该文本范围的文本提供程序。 但是,如果文本提供程序支持表格或超链接这样的子元素,那么包含元素可能为文本提供程序的子代。

适用于