Name

BrowsableAttribute

Synopsis

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

Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.