語言

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

傳回

包圍控制項,通常是提供文字範圍的文字提供者。 然而,如果文字提供者支援子元素,如表格或超連結,那麼包圍的元素可能是文字提供者的後代。

適用於