See Also: DesignerCategoryAttribute
public sealed class DesignerCategoryAttribute : Attribute
A visual designer can use a designer category to inform a development environment of the type of designer that will be implemented. If no designer category is provided on a class, a development environment may or may not allow the class to be designed. A category can be created for any name.
When you mark a class 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 Description column in the table below lists the constant member that each value is set to.
The DesignerCategoryAttribute class defines the following common categories:
Designers that are used with components. The attribute is set to the constant member DesignerCategoryAttribute.Component.
Designers that are used with forms. The attribute is set to the constant member DesignerCategoryAttribute.Form.
Designers that are used with designers. The attribute is set to the constant member DesignerCategoryAttribute.Generic.
|Empty String ("")|
This is the default category.
For more information, see Extending Metadata Using Attributes.
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 220.127.116.11, 18.104.22.168
The members of System.ComponentModel.DesignerCategoryAttribute are listed below.
See Also: Attribute
Specifies that a component marked with this category use a component designer. This field is read-only.
Specifies that a component marked with this category cannot use a visual designer. This static field is read-only.
Specifies that a component marked with this category use a form designer. This static field is read-only.
Specifies that a component marked with this category use a generic designer. This static field is read-only.