IGridItemProvider.ContainingGrid 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得一個實作 IGridProvider 並代表儲存格或物品容器的 使用者介面自動化 提供者。
public:
property System::Windows::Automation::Provider::IRawElementProviderSimple ^ ContainingGrid { System::Windows::Automation::Provider::IRawElementProviderSimple ^ get(); };
public System.Windows.Automation.Provider.IRawElementProviderSimple ContainingGrid { get; }
member this.ContainingGrid : System.Windows.Automation.Provider.IRawElementProviderSimple
Public ReadOnly Property ContainingGrid As IRawElementProviderSimple
屬性值
一個實作 GridPattern 並表示單元或項目容器的 使用者介面自動化提供者。
範例
以下範例程式碼回傳一個物件,作為內部變數儲存,代表網格容器。 此物件實 IGridProvider 作 和 IRawElementProviderFragmentRoot。
IRawElementProviderSimple IGridItemProvider.ContainingGrid
{
get
{
return ItemContainingGrid;
}
}
Private ReadOnly Property ContainingGrid() As IRawElementProviderSimple Implements IGridItemProvider.ContainingGrid
Get
Return ItemContainingGrid
End Get
End Property