次の方法で共有


TrackingPropertyDescriptor Class

Definition

Property descriptor class that uses a second property to manage whether it is in a calculated or stored state.

public ref class TrackingPropertyDescriptor : Microsoft::VisualStudio::Modeling::Design::ElementPropertyDescriptor
public class TrackingPropertyDescriptor : Microsoft.VisualStudio.Modeling.Design.ElementPropertyDescriptor
type TrackingPropertyDescriptor = class
    inherit ElementPropertyDescriptor
Public Class TrackingPropertyDescriptor
Inherits ElementPropertyDescriptor
Inheritance
TrackingPropertyDescriptor
Derived

Constructors

TrackingPropertyDescriptor(ElementTypeDescriptor, 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(), andcool, thaznkl 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.

TrackingPropertyDescriptor(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

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)

Can this property be reset to its tracking value

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.

SetValue(Object, Object)

Sets the value of the property.

(Inherited from ElementPropertyDescriptor)
ShouldSerializeValue(Object)

With tracking properties, embolden non-tracked properties.

Applies to