Share via


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

適用対象

こちらもご覧ください