System.ComponentModel.DesignerCategoryAttribute Class

Specifies that the designer for a class belongs to a certain category.

See Also: DesignerCategoryAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class DesignerCategoryAttribute : Attribute

Remarks

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 System.ComponentModel.DesignerCategoryAttribute class defines the following common categories:

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.

For more information, see Extending Metadata Using Attributes.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0, 4.0.0.0