Class EditorBrowsableAttribute
Specifies that a property or method is viewable in an editor. This class cannot be inherited.
Inherited Members
Namespace: System.ComponentModel
Assembly: mscorlib.dll
Syntax
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Constructor|AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Event|AttributeTargets.Interface|AttributeTargets.Delegate)]
public sealed class EditorBrowsableAttribute : Attribute
Constructors
EditorBrowsableAttribute()
Initializes a new instance of the EditorBrowsableAttribute class with State set to the default state.
Declaration
public EditorBrowsableAttribute()
EditorBrowsableAttribute(EditorBrowsableState)
Initializes a new instance of the EditorBrowsableAttribute class with an EditorBrowsableState.
Declaration
public EditorBrowsableAttribute(EditorBrowsableState state)
Parameters
Type | Name | Description |
---|---|---|
EditorBrowsableState | state | The EditorBrowsableState to set State to. |
Properties
State
Gets the browsable state of the property or method.
Declaration
public EditorBrowsableState State { get; }
Property Value
Type | Description |
---|---|
EditorBrowsableState | An EditorBrowsableState that is the browsable state of the property or method. |
Methods
Equals(object)
Returns whether the value of the given object is equal to the current EditorBrowsableAttribute.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to test the value equality of. |
Returns
Type | Description |
---|---|
bool | true if the value of the given object is equal to that of the current; otherwise, false. |