Aracılığıyla paylaş


IRangeValueProvider.IsReadOnly Özellik

Tanım

Bir denetimin değerinin salt okunur olup olmadığını belirten bir değer alır.

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

Özellik Değeri

Boolean

true değer salt okunur ise; false değiştirilebilirse.

Örnekler

Aşağıdaki örnekte, salt okunur olmayan bir denetim için bu yöntemin uygulanması gösterilmektedir.

/// <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

Şunlara uygulanır

Ayrıca bkz.