System.ComponentModel.CategoryAttribute Class

Specifies the name of the category in which to group the property or event when displayed in a System.Windows.Forms.PropertyGrid control set to Categorized mode.

See Also: CategoryAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.All)]
public class CategoryAttribute : Attribute

Remarks

A System.ComponentModel.CategoryAttribute indicates the category to associate the associated property or event with, when listing properties or events in a System.Windows.Forms.PropertyGrid control set to System.Windows.Forms.PropertySort.Categorized mode. If a System.ComponentModel.CategoryAttribute has not been applied to a property or event, the System.Windows.Forms.PropertyGrid associates it with the Misc category. A new category can be created for any name by specifying the name of the category in the constructor for the System.ComponentModel.CategoryAttribute.

The CategoryAttribute.Category property indicates the name of the category that the attribute represents. The CategoryAttribute.Category property also provides transparent localization of category names.

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