Condividi tramite


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

Syntax

'Dichiarazione
Public Overrides ReadOnly Property Category As String
    Get
public override string Category { get; }
public:
virtual property String^ Category {
    String^ get () override;
}
abstract Category : string
override Category : string
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