다음을 통해 공유


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

설명

이 속성은 동적일 수 있습니다. 예를 들어 드문 경우지만 컨트롤은 초기화 시 여러 항목을 선택할 수 있지만 이후에는 단일 항목만 선택할 수 있습니다.

적용 대상

추가 정보