Share via


ISelectionItemProvider.SelectionContainer Eigenschaft

Definition

Ruft den Benutzeroberflächenautomatisierungs-Anbieter ab, der ISelectionProvider implementiert und als Container für das aufrufende Objekt fungiert.

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

Eigenschaftswert

IRawElementProviderSimple

Der Anbieter, der ISelectionProvider unterstützt.

Beispiele

Der folgende Beispielcode gibt den Benutzeroberflächenautomatisierung Anbieter für das Listenfeld zurück, das dieses Listenelement enthält.

/// <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

Gilt für

Siehe auch