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






In This Topic
    CollapseWhenDisabled Property (TreeView)
    In This Topic
    Gets or sets a value that determines whether nodes should be collapsed when they are disabled.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.DefaultValueAttribute(True)>
    Public Property CollapseWhenDisabled As System.Boolean
    'Usage
     
    
    Dim instance As TreeView
    Dim value As System.Boolean
     
    instance.CollapseWhenDisabled = value
     
    value = instance.CollapseWhenDisabled
    [System.ComponentModel.DefaultValue(true)]
    public System.bool CollapseWhenDisabled {get; set;}
    public read-write property CollapseWhenDisabled: System.Boolean; 
    System.ComponentModel.DefaultValueAttribute()
    public function get,set CollapseWhenDisabled : System.boolean
    [System.ComponentModel.DefaultValue(true)]
    public: __property System.bool get_CollapseWhenDisabled();
    public: __property void set_CollapseWhenDisabled( 
       System.bool value
    );
    [System.ComponentModel.DefaultValue(true)]
    public:
    property System.bool CollapseWhenDisabled {
       System.bool get();
       void set (    System.bool value);
    }
    Remarks
    The default value for this property is true
    See Also