This documentation is archived and is not being maintained.

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
{
    get 
    {
        return containerListProvider;
    }
}

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Show: