Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcComboBox Class / IsReadOnly Property


In This Topic
    IsReadOnly Property (GcComboBox)
    In This Topic
    Gets or sets a value indicating whether this control is read only.
    Syntax
    'Declaration
     
    Public Property IsReadOnly As Boolean
    'Usage
     
    Dim instance As GcComboBox
    Dim value As Boolean
     
    instance.IsReadOnly = value
     
    value = instance.IsReadOnly
    public bool IsReadOnly {get; set;}

    Property Value

    true if the control is read-only; otherwise, false.
    The default is false.
    Remarks
    When this property is set to true, the contents of the control cannot be changed by the user at runtime. With this property set to true, you can still set the value of the Text property in code. You can use this feature instead of disabling the control with the System.Windows.UIElement.IsEnabled property to allow the contents to be copied and ToolTips to be shown.
    See Also