ITextRangeProvider.GetEnclosingElement 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳包圍文字範圍的最內層控制項。
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
傳回
包圍控制項,通常是提供文字範圍的文字提供者。 然而,如果文字提供者支援子元素,如表格或超連結,那麼包圍的元素可能是文字提供者的後代。