Share via


ElementPropertyDescriptor.Category Property

Gets the category in which to group the domain property when the property is displayed in a PropertyGrid control that is set to Categorized mode.

Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

Syntax

'Declaration
Public Overrides ReadOnly Property Category As String
public override string Category { get; }
public:
virtual property String^ Category {
    String^ get () override;
}
abstract Category : string with get 
override Category : string with get
override function get Category () : String

Property Value

Type: System.String
The category of the described property.

Remarks

If the owner parameter was specified in the constructor for this property descriptor, then the GetCategory method of the owner provides the category, where this descriptor is passed in the propertyDescriptor parameter. Otherwise, the CategoryResourceAttribute or CategoryAttribute that is applied to the described property is used. If no category is specified, the default category, Misc, is returned.

.NET Framework Security

See Also

Reference

ElementPropertyDescriptor Class

Microsoft.VisualStudio.Modeling.Design Namespace

ElementTypeDescriptor

CategoryResourceAttribute