ISelectionItemProvider.SelectionContainer Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Windows.Automation.Provider
Assembly:  UIAutomationProvider (in UIAutomationProvider.dll)

IRawElementProviderSimple SelectionContainer { get; }

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;
    }
}

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: