次の方法で共有


ISelectionItemProvider.SelectionContainer プロパティ

定義

ISelectionProvider を実装し、呼び出し元オブジェクトのコンテナーとして機能する UI オートメーション プロバイダーを取得します。

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

プロパティ値

IRawElementProviderSimple

ISelectionProvider をサポートするプロバイダー。

次のコード例では、このリスト アイテムを含むリスト ボックスのUI オートメーション プロバイダーを返します。

/// <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

適用対象

こちらもご覧ください