ElementPropertyDescriptor.Category 属性

获取类别,在其中将域属性分组(当显示在 PropertyGrid 控件中的属性设置为“已分类”模式时)。

命名空间:  Microsoft.VisualStudio.Modeling.Design
程序集:  Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)

语法

声明
Public Overrides ReadOnly Property Category As String
public override string Category { get; }

属性值

类型:System.String
描述的属性的类别。

备注

如果 owner 参数在构造函数中指定了此属性描述符,则 owner 的 GetCategory 方法,此说明符。提供类别 propertyDescriptor 参数传递。 否则,应用于中描述的属性中使用 CategoryResourceAttributeCategoryAttribute。 如果类不指定,则默认类别,杂项,返回。

.NET Framework 安全性

请参阅

参考

ElementPropertyDescriptor 类

Microsoft.VisualStudio.Modeling.Design 命名空间

ElementTypeDescriptor

CategoryResourceAttribute