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 (in Microsoft.VisualStudio.Modeling.Sdk.dll)

Syntax

'Declaration
Public Overrides ReadOnly Property Category As String
'Usage
Dim instance As ElementPropertyDescriptor 
Dim value As String 

value = instance.Category
public override string Category { get; }
public:
virtual property String^ Category {
    String^ get () override;
}
public 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

ElementPropertyDescriptor Members

Microsoft.VisualStudio.Modeling.Design Namespace

ElementTypeDescriptor

CategoryResourceAttribute

Change History

Date

History

Reason

July 2008

Added topic.

Content bug fix.