ISelectionProvider.IsSelectionRequired 속성

정의

UI 자동화 공급자에서 하나 이상의 자식 요소를 선택해야 하는지 여부를 지정하는 값을 가져옵니다.

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

속성 값

Boolean

선택해야 하면 true이고, 선택할 필요가 없으면 false입니다.

예제

다음 예제에서는 항상 항목을 선택 해야 하는 목록에 대 한이 메서드의 구현을 보여 줍니다.

/// <summary>
/// Specifies whether the list must have an item selected at all times.
/// </summary>
bool ISelectionProvider.IsSelectionRequired
{
    get
    {
        return true;
    }
}
''' <summary>
''' Specifies whether the list must have an item selected at all times.
''' </summary>
Private ReadOnly Property IsSelectionRequired() As Boolean Implements ISelectionProvider.IsSelectionRequired
    Get
        Return True
    End Get
End Property

설명

이 속성은 동적일 수 있습니다. 예를 들어 컨트롤의 초기 상태에는 기본적으로 선택된 항목이 없을 수 있습니다. 즉 IsSelectionRequired false, 그러나 항목이 선택된 후에는 컨트롤에 하나 이상의 항목이 항상 선택되어 있어야 합니다.

적용 대상

추가 정보