0 out of 1 rated this helpful - Rate this topic

BrowsableAttribute Class

Specifies whether a property or event should be displayed in a Properties window.

System.Object
  System.Attribute
    System.ComponentModel.BrowsableAttribute

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)
[AttributeUsageAttribute(AttributeTargets.All)]
public sealed class BrowsableAttribute : Attribute

The BrowsableAttribute type exposes the following members.

  Name Description
Public method Supported by Silverlight for Windows Phone BrowsableAttribute Initializes a new instance of the BrowsableAttribute class.
Top
  Name Description
Public property Supported by Silverlight for Windows Phone Browsable Gets a value indicating whether an object is browsable.
Top
  Name Description
Public method Supported by Silverlight for Windows Phone Equals Indicates whether this instance and a specified object are equal. (Overrides Attribute.Equals(Object).)
Protected method Supported by Silverlight for Windows Phone Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method Supported by Silverlight for Windows Phone GetHashCode Returns the hash code for this instance. (Overrides Attribute.GetHashCode().)
Public method Supported by Silverlight for Windows Phone GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Supported by Silverlight for Windows Phone Match When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.)
Protected method Supported by Silverlight for Windows Phone MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by Silverlight for Windows Phone ToString Returns a string that represents the current object. (Inherited from Object.)
Top
  Name Description
Public field Static member Supported by Silverlight for Windows Phone Default Specifies the default value for the BrowsableAttribute, which is Yes. This static field is read-only.
Public field Static member Supported by Silverlight for Windows Phone No Specifies that a property or event cannot be modified at design time. This static field is read-only.
Public field Static member Supported by Silverlight for Windows Phone Yes Specifies that a property or event can be modified at design time. This static field is read-only.
Top

A visual designer typically displays in the Properties window those members that either have no browsable attribute or are marked with the BrowsableAttribute constructor's browsable parameter set to true. These members can be modified at design time. Members marked with the BrowsableAttribute constructor's browsable parameter set to false are not appropriate for design-time editing and therefore are not displayed in a visual designer. The default is true.

Note Note:

When you mark a property with Browsable(true), the value of this attribute is set to the constant member Yes. For a property marked with Browsable(false), the value is No. Therefore, when you check the value of this attribute in your code, you must specify the attribute as BrowsableAttribute.Yes or BrowsableAttribute.No.

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ