IRangeValueProvider.IsReadOnly 속성

정의

컨트롤의 값이 읽기 전용인지 여부를 지정하는 값을 가져옵니다.

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

속성 값

Boolean

값이 읽기 전용이면 true이고, 값을 수정할 수 있으면 false입니다.

예제

다음 예제에서는 읽기 전용이 아닌 컨트롤에 대 한이 메서드의 구현을 보여 집니다.

/// <summary>
/// Specifies whether the control is read-only.
/// </summary>
public bool IsReadOnly
{
    get 
    { 
        return !(this.customControl.Enabled); 
    }
}
''' <summary>
''' Specifies whether the control is read-only.
''' </summary>
Public ReadOnly Property IsReadOnly() As Boolean Implements IRangeValueProvider.IsReadOnly
    Get
        Return Not(Me.customControl.Enabled)
    End Get
End Property

적용 대상

추가 정보