共用方式為


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