ElementPropertyDescriptor Class

 

Represents a domain property in a domain-specific language (DSL) model.

Namespace:   Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)


public ref class ElementPropertyDescriptor : PropertyDescriptor

NameDescription
System_CAPS_pubmethodElementPropertyDescriptor(ElementTypeDescriptor^, ModelElement^, DomainPropertyInfo^, array<Attribute^>^)

Initializes a new instance of the ElementPropertyDescriptor class and specifies a default value provider.

System_CAPS_pubmethodElementPropertyDescriptor(ModelElement^, DomainPropertyInfo^, array<Attribute^>^)

Initializes a new instance of the ElementPropertyDescriptor class.

NameDescription
System_CAPS_protpropertyAttributeArray

(Inherited from MemberDescriptor.)

System_CAPS_pubpropertyAttributes

(Inherited from MemberDescriptor.)

System_CAPS_pubpropertyCategory

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.(Overrides MemberDescriptor::Category.)

System_CAPS_pubpropertyComponentType

Gets the type of the model element to which this property is bound.(Overrides PropertyDescriptor::ComponentType.)

System_CAPS_pubpropertyConverter

Gets the converter for the described property.(Overrides PropertyDescriptor::Converter.)

System_CAPS_pubpropertyDescription

Gets the description of the described property, as specified in the DescriptionResourceAttribute.(Overrides MemberDescriptor::Description.)

System_CAPS_pubpropertyDesignTimeOnly

(Inherited from MemberDescriptor.)

System_CAPS_pubpropertyDisplayName

Gets the display name of the described property, as specified in the DisplayNameResourceAttribute.(Overrides MemberDescriptor::DisplayName.)

System_CAPS_pubpropertyDomainPropertyInfo

Gets the property information object that was used to create this property descriptor.

System_CAPS_pubpropertyIsBrowsable

(Inherited from MemberDescriptor.)

System_CAPS_pubpropertyIsInstanceBased

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

System_CAPS_pubpropertyIsLocalizable

(Inherited from PropertyDescriptor.)

System_CAPS_pubpropertyIsReadOnly

Gets a value that indicates whether the described property is read-only.(Overrides PropertyDescriptor::IsReadOnly.)

System_CAPS_pubpropertyModelElement

Gets the model element that was used to create this property descriptor.

System_CAPS_pubpropertyName

(Inherited from MemberDescriptor.)

System_CAPS_protpropertyNameHashCode

(Inherited from MemberDescriptor.)

System_CAPS_pubpropertyPropertyType

Gets the property type of the described property.(Overrides PropertyDescriptor::PropertyType.)

System_CAPS_pubpropertySerializationVisibility

(Inherited from PropertyDescriptor.)

System_CAPS_pubpropertySupportsChangeEvents

(Inherited from PropertyDescriptor.)

NameDescription
System_CAPS_pubmethodAddValueChanged(Object^, EventHandler^)
System_CAPS_pubmethodCanResetValue(Object^)

Indicates whether the value of the domain property can be reset.(Overrides PropertyDescriptor::CanResetValue(Object^).)

System_CAPS_pubmethodSystem_CAPS_staticCanSetProperty(ModelElement^, DomainPropertyInfo^)

System_CAPS_protmethodCreateAttributeCollection()

(Inherited from MemberDescriptor.)

System_CAPS_protmethodCreateInstance(Type^)

(Inherited from PropertyDescriptor.)

System_CAPS_pubmethodEquals(Object^)

(Inherited from PropertyDescriptor.)

System_CAPS_protmethodFillAttributes(IList^)

(Inherited from PropertyDescriptor.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetChildProperties()

(Inherited from PropertyDescriptor.)

System_CAPS_pubmethodGetChildProperties(array<Attribute^>^)

(Inherited from PropertyDescriptor.)

System_CAPS_pubmethodGetChildProperties(Object^)

(Inherited from PropertyDescriptor.)

System_CAPS_pubmethodGetChildProperties(Object^, array<Attribute^>^)

(Inherited from PropertyDescriptor.)

System_CAPS_pubmethodGetEditor(Type^)

Returns a value editor for the described property.(Overrides PropertyDescriptor::GetEditor(Type^).)

System_CAPS_pubmethodSystem_CAPS_staticGetElementPropertyDescriptor(ModelElement^, DomainPropertyInfo^)

Gets the ElementPropertyDescriptor given a ModelElement and DomainPropertyInfo.

System_CAPS_pubmethodGetHashCode()

(Inherited from PropertyDescriptor.)

System_CAPS_protmethodGetInvocationTarget(Type^, Object^)

(Inherited from PropertyDescriptor.)

System_CAPS_pubmethodSystem_CAPS_staticGetSetValueTransactionName(String^)

Returns a localized string for the name of the set value transaction.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodGetTypeFromName(String^)

(Inherited from PropertyDescriptor.)

System_CAPS_pubmethodGetValue(Object^)

Gets the value of the domain property.(Overrides PropertyDescriptor::GetValue(Object^).)

System_CAPS_protmethodGetValueChangedHandler(Object^)

(Inherited from PropertyDescriptor.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodOnValueChanged(Object^, EventArgs^)

(Inherited from PropertyDescriptor.)

System_CAPS_pubmethodRemoveValueChanged(Object^, EventHandler^)
System_CAPS_pubmethodResetValue(Object^)

Resets the value of the domain property.(Overrides PropertyDescriptor::ResetValue(Object^).)

System_CAPS_pubmethodSystem_CAPS_staticSetProperty(ModelElement^, DomainPropertyInfo^, Object^)

Set the property value. Property value is generally set via an ElementPropertyDescriptor. It will be set directly via the SetValue method on propertyInfo if - IsBrowsable attribute is set to false on propertyInfo and ElementPropertyDescriptor is not found.

System_CAPS_pubmethodSetValue(Object^, Object^)

Sets the value of the domain property.(Overrides PropertyDescriptor::SetValue(Object^, Object^).)

System_CAPS_pubmethodShouldSerializeValue(Object^)

Indicates whether the value of the domain property should be serialized.(Overrides PropertyDescriptor::ShouldSerializeValue(Object^).)

System_CAPS_pubmethodToString()

(Inherited from Object.)

This class provides dynamic custom property information for a domain property of a model element.

The Domain-Specific Language Tools (DSL Tools) use this type to represent the domain class properties in a domain model. This type controls how a property is handled by the property grid in the domain model and provides transactions for modifying the described property.

To create a customized element property descriptor, inherit from this class and override one or more of the members.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: