Freigeben über


DslDefinitionModelElementPropertyDescriptor Class

Definition

Provide custom property descriptor for domain classes defined in the DslDefintion namespace

public ref class DslDefinitionModelElementPropertyDescriptor sealed : Microsoft::VisualStudio::Modeling::Design::ElementPropertyDescriptor
public sealed class DslDefinitionModelElementPropertyDescriptor : Microsoft.VisualStudio.Modeling.Design.ElementPropertyDescriptor
type DslDefinitionModelElementPropertyDescriptor = class
    inherit ElementPropertyDescriptor
Public NotInheritable Class DslDefinitionModelElementPropertyDescriptor
Inherits ElementPropertyDescriptor
Inheritance
DslDefinitionModelElementPropertyDescriptor

Constructors

DslDefinitionModelElementPropertyDescriptor(ElementTypeDescriptor, ModelElement, DomainPropertyInfo, Attribute[])

DslDefinitionModelElementPropertyDescriptor is for concept property

Properties

Category

Gets the name of the category to which the member belongs, as specified in the CategoryAttribute.

(Inherited from ElementPropertyDescriptor)
ComponentType

The type of component the framework expects for this property. Notice this returns element.GetType(). That is because the object that is being browsed when this property is shown is an ModelElement. So we are faking the PropertyGrid into thinking this is a property on that type, even though it isn't.

(Inherited from ElementPropertyDescriptor)
Converter

Gets the type converter of the property descriptor.

(Inherited from ElementPropertyDescriptor)
Description

Gets the description of the member, as specified in the DescriptionAttribute.

(Inherited from ElementPropertyDescriptor)
DisplayName

Gets the name that can be displayed in a window, such as a Properties window.

(Inherited from ElementPropertyDescriptor)
DomainPropertyInfo

DomainPropertyInfo for this propery

(Inherited from ElementPropertyDescriptor)
IsInstanceBased

Test if this PropertyDescriptor is based on an instance or a static type.

(Inherited from ElementPropertyDescriptor)
IsReadOnly

We have to override all the abstract members.

(Inherited from ElementPropertyDescriptor)
ModelElement

returns the element to which this property belongs

(Inherited from ElementPropertyDescriptor)
PropertyType

Returns the property type.

(Inherited from ElementPropertyDescriptor)

Methods

AddValueChanged(Object, EventHandler) (Inherited from ElementPropertyDescriptor)
CanResetValue(Object)

This is not a resettable property.

(Inherited from ElementPropertyDescriptor)
GetEditor(Type)

Gets an editor of the specified type. Override this so we can provide our own FlagEnumerationEditor for bit-wisable enum

(Inherited from ElementPropertyDescriptor)
GetValue(Object)

Get the value of the property...

(Inherited from ElementPropertyDescriptor)
RemoveValueChanged(Object, EventHandler) (Inherited from ElementPropertyDescriptor)
ResetValue(Object)

Reset domain propertyvalue to the default based on the default of the domain.

(Inherited from ElementPropertyDescriptor)
SetValue(Object, Object)

Sets the value of the property.

ShouldSerializeValue(Object)

Allow the property to be reported as bold in the property browser

(Inherited from ElementPropertyDescriptor)

Applies to