Sdílet prostřednictvím


ISelectionItemProvider.SelectionContainer Vlastnost

Definice

Získá model UI Automation zprostředkovatele, který implementuje ISelectionProvider a funguje jako kontejner pro volající objekt.

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

Hodnota vlastnosti

Poskytovatel, který podporuje ISelectionProvider.

Příklady

Následující příklad kódu vrátí model UI Automation zprostředkovatele pro seznam, který obsahuje tuto položku seznamu.

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

Platí pro

Viz také