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

返回

封闭控件,通常是提供文本范围的文本提供程序。 但是,如果文本提供程序支持表或超链接等子元素,则封闭元素可能是文本提供程序的后代。

适用于