Udostępnij za pośrednictwem


DslDefinitionModelElementTrackingPropertyDescriptor Class

Definition

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

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

Constructors

DslDefinitionModelElementTrackingPropertyDescriptor(ModelElement, DomainPropertyInfo, DomainPropertyInfo, Attribute[])

The ElementPropertyDescriptor can operate upon a specific element passed in to the constructor, or it can accept a null element.

If a specific element is provided, GetValue(), SetValue(), and the other methods will ignore the object argument passed in and will instead use that specific element.

If a null element is provided, GetValue(), SetValue(), and the other methods will use the object argument passed in.

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

Returns whether this property is readonly or not.

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)

Can this property be reset to its tracking value

(Inherited from TrackingPropertyDescriptor)
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 the value of the property to be the calculated value.

(Inherited from TrackingPropertyDescriptor)
SetValue(Object, Object)

Sets the value of the property.

ShouldSerializeValue(Object)

With tracking properties, embolden non-tracked properties.

(Inherited from TrackingPropertyDescriptor)

Applies to