Specifies that the designer for a class belongs to a certain category.
Object
Attribute
MemberAttribute
DesignerCategoryAttribute
[Visual Basic] Public Class DesignerCategoryAttribute Inherits MemberAttribute [C#] public class DesignerCategoryAttribute : MemberAttribute [C++] public __gc class DesignerCategoryAttribute : public MemberAttribute [JScript] public class DesignerCategoryAttribute extends MemberAttribute
A visual designer can use categories to organize members into groups of similar behavior. A category can be created for any name.
When you mark a property with this attribute, it is set to a constant member. When you want to check the value of this attribute in your code, you must specify the constant member. The constant member that each value is set to is listed in the Description column in the table below.
The DesignerCategoryAttribute class defines the following common categories:
Category | Description |
---|---|
Component | Designers that are used with components. The attribute is set to the constant member DesignerCategoryAttribute.Component. |
Form | Designers that are used with forms. The attribute is set to the constant member DesignerCategoryAttribute.Form. |
Designer | Designers that are used with designers. The attribute is set to the constant member DesignerCategoryAttribute. Generic. |
Empty String ("") | This is the default category. The attribute is set to the constant member DesignerCategoryAttribute.Default. |
For more information, see TBD and TBD.
Namespace: System.ComponentModel
Assembly: System.dll
System.ComponentModel Namespace | MemberAttribute | DesignerAttribute