ISelectionItemProvider.SelectionContainer Property
Definition
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.