Share via


IGridItemProvider.ContainingGrid 屬性

定義

取得實作 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 且表示儲存格或項目容器的使用者介面自動化提供者。

範例

下列範例程式碼會傳回物件,儲存為代表格線容器的內部變數。 這個物件會實作 IGridProviderIRawElementProviderFragmentRoot

IRawElementProviderSimple IGridItemProvider.ContainingGrid
{
    get 
    { 
        return ItemContainingGrid; 
    }
}
Private ReadOnly Property ContainingGrid() As IRawElementProviderSimple Implements IGridItemProvider.ContainingGrid
    Get
        Return ItemContainingGrid
    End Get
End Property

適用於

另請參閱