Specifies the category in which the property or event will be displayed in a visual designer.
Object
Attribute
MemberAttribute
CategoryAttribute
[Visual Basic] Public Class CategoryAttribute Inherits MemberAttribute [C#] public class CategoryAttribute : MemberAttribute [C++] public __gc class CategoryAttribute : public MemberAttribute [JScript] public class CategoryAttribute extends MemberAttribute
A visual designer can use categories to organize members into groups of similar behavior. A category can be created for any name. The CategoryAttribute class defines the following common categories:
Category | Description |
---|---|
Appearance | Properties affecting how an entity looks. |
Behavior | Properties that affect how an entity acts. |
Data | Properties concerning data. |
Design | Properties that are available only at design time. |
Action | Properties regarding available actions. |
Format | Properties that affect format. |
Layout | Properties concerning layout. |
Mouse | Properties pertaining to the mouse. |
Key | Properties affecting the keyboard. |
Focus | Properties pertaining to focus. |
Window Style | Properties affecting the window style of top-level forms. |
Drag Drop | Properties about drag and drop. |
Misc | Properties that do not fit into any other category. This is the default category. |
For more information, see TBD and TBD.
Namespace: System.ComponentModel
Assembly: System.dll
System.ComponentModel Namespace | MemberAttribute | PropertyDescriptor | EventDescriptor