DekGenius.com
[ Team LiB ] Previous Section Next Section

BrowsableAttribute

System.ComponentModel (system.dll)sealed class

This attribute class is applied to properties to indicate whether they should be shown in a designer. Note that unattributed properties are visible by default.

Use the Browsable property to determine the state of the attribute. Note that the constructor takes a Boolean value, but you can compare instances against the Yes or No values for equality.

public sealed class BrowsableAttribute : Attribute {
// Public Constructors
   public BrowsableAttribute(bool browsable);
// Public Static Fields
   public static readonly BrowsableAttribute Default;  // =System.ComponentModel.BrowsableAttribute
   public static readonly BrowsableAttribute No;  // =System.ComponentModel.BrowsableAttribute
   public static readonly BrowsableAttribute Yes;  // =System.ComponentModel.BrowsableAttribute
// Public Instance Properties
   public bool Browsable{get; }
// Public Instance Methods
   public override bool Equals(object obj);  // overrides Attribute
   public override int GetHashCode();  // overrides Attribute
   public override bool IsDefaultAttribute();  // overrides Attribute
}

Hierarchy

System.Object System.Attribute BrowsableAttribute

Valid On

All

    [ Team LiB ] Previous Section Next Section