指定在其中进行分组的属性或事件中显示的类别的名称 PropertyGrid 控件设置为按分类顺序模式。

命名空间:                   System.ComponentModel
程序集:         System(位于 System.dll)

继承层次结构

System.Object
System.Attribute
System.ComponentModel.CategoryAttribute

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

构造函数


名称 说明
System_CAPS_pubmethod CategoryAttribute()

新实例初始化 CategoryAttribute 类使用的类别名称默认值。

System_CAPS_pubmethod CategoryAttribute(String)

新实例初始化 CategoryAttribute 类使用指定的类别名称。

属性


名称 说明
System_CAPS_pubpropertySystem_CAPS_static Action

获取 CategoryAttribute 表示的操作类别。

System_CAPS_pubpropertySystem_CAPS_static Appearance

获取 CategoryAttribute 表示外观类别。

System_CAPS_pubpropertySystem_CAPS_static Asynchronous

获取 CategoryAttribute 表示异步类别。

System_CAPS_pubpropertySystem_CAPS_static Behavior

获取 CategoryAttribute 表示行为类别。

System_CAPS_pubproperty Category

获取的属性或此特性应用于事件的类别的名称。