Share via


IGridItemProvider.ContainingGrid プロパティ

定義

IGridProvider を実装する UI オートメーション プロバイダーを取得し、セルまたは項目のコンテナーを表します。

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 を実装し、セルまたは項目のコンテナーを表す、UI オートメーション プロバイダー。

次のコード例では、グリッド コンテナーを表す内部変数として格納されている オブジェクトを返します。 このオブジェクトは、 と IRawElementProviderFragmentRootを実装しますIGridProvider

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

適用対象

こちらもご覧ください