ISelectionProvider.CanSelectMultiple プロパティ

定義

UI オートメーション プロバイダーが複数の子要素の同時選択を許可するかどうかを示す値を取得します。

public:
 property bool CanSelectMultiple { bool get(); };
public bool CanSelectMultiple { get; }
member this.CanSelectMultiple : bool
Public ReadOnly Property CanSelectMultiple As Boolean

プロパティ値

Boolean

複数を選択できる場合は true。それ以外の場合は false

次の例は、一度に複数の項目を選択できないリストに対するこのメソッドの実装を示しています。

/// <summary>
/// Specifies whether selection of more than one item at a time is supported.
/// </summary>
bool ISelectionProvider.CanSelectMultiple
{
    get
    {
        return false;
    }
}
''' <summary>
''' Specifies whether selection of more than one item at a time is supported.
''' </summary>
Private ReadOnly Property CanSelectMultiple() As Boolean Implements ISelectionProvider.CanSelectMultiple
    Get
        Return False
    End Get
End Property

注釈

このプロパティは動的な場合があります。 たとえば、まれに、コントロールで初期化時に複数の項目を選択でき、その後は 1 つの選択のみを許可する場合があります。

適用対象

こちらもご覧ください