ISelectionItemProvider.SelectionContainer Właściwość

Definicja

Pobiera dostawcę automatyzacja interfejsu użytkownika, który implementuje obiekt wywołujący ISelectionProvider i działa jako kontener.

public:
 property System::Windows::Automation::Provider::IRawElementProviderSimple ^ SelectionContainer { System::Windows::Automation::Provider::IRawElementProviderSimple ^ get(); };
public System.Windows.Automation.Provider.IRawElementProviderSimple SelectionContainer { get; }
member this.SelectionContainer : System.Windows.Automation.Provider.IRawElementProviderSimple
Public ReadOnly Property SelectionContainer As IRawElementProviderSimple

Wartość właściwości

IRawElementProviderSimple

Dostawca, który obsługuje ISelectionProviderusługę .

Przykłady

Poniższy przykładowy kod zwraca dostawcę automatyzacja interfejsu użytkownika dla pola listy zawierającego ten element listy.

/// <summary>
/// Gets the list box that contains the item.
/// </summary>
/// <remarks>
/// Provider for the list that contains the item.
/// </remarks>
public IRawElementProviderSimple SelectionContainer
{
    get 
    {
        return containerListProvider;
    }
}
''' <summary>
''' Gets the list box that contains the item.
''' </summary>
''' <remarks>
''' Provider for the list that contains the item.
''' </remarks>
Public ReadOnly Property SelectionContainer() As IRawElementProviderSimple Implements ISelectionItemProvider.SelectionContainer
    Get
        Return containerListProvider
    End Get
End Property

Dotyczy

Zobacz też