ASP.NET Core MVC Controls | ComponentOne
C1.Web.Mvc Namespace / TreeView Class / IsReadOnly Property






In This Topic
    IsReadOnly Property (TreeView)
    In This Topic
    Gets or sets a value that determines whether users can edit the text in the nodes. When it is set to false, users may edit the content of the tree nodes by typing directly into the nodes. The F2 key can also be used to enter edit mode with the whole node content selected.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.DefaultValueAttribute(True)>
    Public Property IsReadOnly As System.Boolean
    'Usage
     
    
    Dim instance As TreeView
    Dim value As System.Boolean
     
    instance.IsReadOnly = value
     
    value = instance.IsReadOnly
    [System.ComponentModel.DefaultValue(true)]
    public System.bool IsReadOnly {get; set;}
    public read-write property IsReadOnly: System.Boolean; 
    System.ComponentModel.DefaultValueAttribute()
    public function get,set IsReadOnly : System.boolean
    [System.ComponentModel.DefaultValue(true)]
    public: __property System.bool get_IsReadOnly();
    public: __property void set_IsReadOnly( 
       System.bool value
    );
    [System.ComponentModel.DefaultValue(true)]
    public:
    property System.bool IsReadOnly {
       System.bool get();
       void set (    System.bool value);
    }
    See Also