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 オートメーション プロバイダー。

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

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

適用対象

こちらもご覧ください