ElementPropertyDescriptor Class

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


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

public class ElementPropertyDescriptor : PropertyDescriptor

The ElementPropertyDescriptor type exposes the following members.

Public methodElementPropertyDescriptor(ModelElement, DomainPropertyInfo, Attribute[])Initializes a new instance of the ElementPropertyDescriptor class.
Public methodElementPropertyDescriptor(ElementTypeDescriptor, ModelElement, DomainPropertyInfo, Attribute[])Initializes a new instance of the ElementPropertyDescriptor class and specifies a default value provider.

Protected propertyAttributeArrayGets or sets an array of attributes. (Inherited from MemberDescriptor.)
Public propertyAttributesGets the collection of attributes for this member. (Inherited from MemberDescriptor.)
Public propertyCategoryGets 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.)
Public propertyComponentTypeGets the type of the model element to which this property is bound. (Overrides PropertyDescriptor.ComponentType.)
Public propertyConverterGets the converter for the described property. (Overrides PropertyDescriptor.Converter.)
Public propertyDescriptionGets the description of the described property, as specified in the DescriptionResourceAttribute. (Overrides MemberDescriptor.Description.)
Public propertyDesignTimeOnlyGets whether this member should be set only at design time, as specified in the DesignOnlyAttribute. (Inherited from MemberDescriptor.)
Public propertyDisplayNameGets the display name of the described property, as specified in the DisplayNameResourceAttribute. (Overrides MemberDescriptor.DisplayName.)
Public propertyDomainPropertyInfoGets the property information object that was used to create this property descriptor.
Public propertyIsBrowsableGets a value indicating whether the member is browsable, as specified in the BrowsableAttribute. (Inherited from MemberDescriptor.)
Public propertyIsInstanceBasedTest if this PropertyDescriptor is based on an instance or a static type.
Public propertyIsLocalizableGets a value indicating whether this property should be localized, as specified in the LocalizableAttribute. (Inherited from PropertyDescriptor.)
Public propertyIsReadOnlyGets a value that indicates whether the described property is read-only. (Overrides PropertyDescriptor.IsReadOnly.)
Public propertyModelElementGets the model element that was used to create this property descriptor.
Public propertyNameGets the name of the member. (Inherited from MemberDescriptor.)
Protected propertyNameHashCodeGets the hash code for the name of the member, as specified in GetHashCode. (Inherited from MemberDescriptor.)
Public propertyPropertyTypeGets the property type of the described property. (Overrides PropertyDescriptor.PropertyType.)
Public propertySerializationVisibilityGets a value indicating whether this property should be serialized, as specified in the DesignerSerializationVisibilityAttribute. (Inherited from PropertyDescriptor.)
Public propertySupportsChangeEventsGets a value indicating whether value change notifications for this property may originate from outside the property descriptor. (Inherited from PropertyDescriptor.)

Public methodAddValueChanged (Overrides PropertyDescriptor.AddValueChanged(Object, EventHandler).)
Public methodCanResetValueIndicates whether the value of the domain property can be reset. (Overrides PropertyDescriptor.CanResetValue(Object).)
Public methodStatic memberCanSetProperty
Protected methodCreateAttributeCollectionCreates a collection of attributes using the array of attributes passed to the constructor. (Inherited from MemberDescriptor.)
Protected methodCreateInstanceCreates an instance of the specified type. (Inherited from PropertyDescriptor.)
Public methodEqualsCompares this to another object to see if they are equivalent. (Inherited from PropertyDescriptor.)
Protected methodFillAttributesAdds the attributes of the PropertyDescriptor to the specified list of attributes in the parent class. (Inherited from PropertyDescriptor.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetChildPropertiesReturns the default PropertyDescriptorCollection. (Inherited from PropertyDescriptor.)
Public methodGetChildProperties(Attribute)Returns a PropertyDescriptorCollection using a specified array of attributes as a filter. (Inherited from PropertyDescriptor.)
Public methodGetChildProperties(Object)Returns a PropertyDescriptorCollection for a given object. (Inherited from PropertyDescriptor.)
Public methodGetChildProperties(Object, Attribute)Returns a PropertyDescriptorCollection for a given object using a specified array of attributes as a filter. (Inherited from PropertyDescriptor.)
Public methodGetEditorReturns a value editor for the described property. (Overrides PropertyDescriptor.GetEditor(Type).)
Public methodStatic memberGetElementPropertyDescriptorGets the ElementPropertyDescriptor given a ModelElement and DomainPropertyInfo.
Public methodGetHashCodeReturns the hash code for this object. (Inherited from PropertyDescriptor.)
Protected methodGetInvocationTargetThis method returns the object that should be used during invocation of members. (Inherited from PropertyDescriptor.)
Public methodStatic memberGetSetValueTransactionNameReturns a localized string for the name of the set value transaction.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodGetTypeFromNameReturns a type using its name. (Inherited from PropertyDescriptor.)
Public methodGetValueGets the value of the domain property. (Overrides PropertyDescriptor.GetValue(Object).)
Protected methodGetValueChangedHandlerRetrieves the current set of ValueChanged event handlers for a specific component (Inherited from PropertyDescriptor.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnValueChangedRaises the ValueChanged event that you implemented. (Inherited from PropertyDescriptor.)
Public methodRemoveValueChanged (Overrides PropertyDescriptor.RemoveValueChanged(Object, EventHandler).)
Public methodResetValueResets the value of the domain property. (Overrides PropertyDescriptor.ResetValue(Object).)
Public methodStatic memberSetPropertySet 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.
Public methodSetValueSets the value of the domain property. (Overrides PropertyDescriptor.SetValue(Object, Object).)
Public methodShouldSerializeValueIndicates whether the value of the domain property should be serialized. (Overrides PropertyDescriptor.ShouldSerializeValue(Object).)
Public methodToStringReturns a string that represents the current object. (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.