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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.