Description attribute
When you select this attribute or event, the description of the attribute or event is displayed below the Attribute Table.
Example:
[Description ("the text to display.")] Public String text {......}
The category attribute classifies attributes or events. When the Attribute Table is displayed in classification mode, the attribute is used as the classification basis. Example:
[Category ("layout")] Public String text {......}
Browsable attribute controls whether a property or event is displayed in the Attribute Table. Example:
[Browsable (false)] Public String novisible
The editorbrowsable attribute controls whether a property or event is displayed in the intelliisense window, and the table B-1 is a possible value. Never does not show always show advanced only show in advanced user mode, advanced mode can use tools | options | text editor |C #Open
Example:
[Editorbrowsable (editorbrowsablestate. Never)] Public String text
Defaultevent attribute specifies the default event. When you double-click a widget or widget, the editor creates this event function. Example:
[Defaultevent ("click")] public class mybutton
Defaultproperty attribute specifies the default attribute example:
[Defaultproperty ("text")] public class mybutton
Readonly attribute specifies whether the attribute is read-only. Example:
[Readonly (true)] public int myproperty
Bindable attribute specifies whether the attribute supports data binding. Example:
[Bindable (true)] public int myproperty