Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ISelectionItemProvider.SelectionContainer Property

Definition

Namespace:
System.Windows.Automation.Provider
Assembly:
UIAutomationProvider.dll

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets the UI Automation provider that implements ISelectionProvider and acts as the container for the calling object.

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

Property Value

The provider that supports ISelectionProvider.

Examples

The following example code returns the UI Automation provider for the list box that contains this list item.

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

Applies to

See also


Feedback

Was this page helpful?