ISelectionItemProvider.SelectionContainer Property


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
        return containerListProvider;

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