IGridItemProvider.ContainingGrid Właściwość

Definicja

Pobiera dostawcę automatyzacja interfejsu użytkownika, który implementuje IGridProvider i reprezentuje kontener komórki lub elementu.

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

Wartość właściwości

Dostawca automatyzacja interfejsu użytkownika, który implementuje obiekt GridPattern i reprezentuje kontener komórki lub elementu.

Przykłady

Poniższy przykładowy kod zwraca obiekt przechowywany jako zmienna wewnętrzna reprezentująca kontener siatki. Ten obiekt implementuje IGridProvider i IRawElementProviderFragmentRoot.

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

Dotyczy

Zobacz też