ElementPropertyDescriptor Class
Represents a domain property in a domain-specific language (DSL) model.
Inheritance Hierarchy
System.Object
System.ComponentModel.MemberDescriptor
System.ComponentModel.PropertyDescriptor
Microsoft.VisualStudio.Modeling.Design.ElementPropertyDescriptor
Microsoft.VisualStudio.Modeling.Design.TrackingPropertyDescriptor
Microsoft.VisualStudio.Modeling.Diagrams.LabelShapeTextPropertyDescriptor
Microsoft.VisualStudio.Modeling.DslDefinition.Design.DslDefinitionModelElementPropertyDescriptor
Namespace: Microsoft.VisualStudio.Modeling.Design
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaração
Public Class ElementPropertyDescriptor _
Inherits PropertyDescriptor
public class ElementPropertyDescriptor : PropertyDescriptor
public ref class ElementPropertyDescriptor : public PropertyDescriptor
type ElementPropertyDescriptor =
class
inherit PropertyDescriptor
end
public class ElementPropertyDescriptor extends PropertyDescriptor
The ElementPropertyDescriptor type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ElementPropertyDescriptor(ModelElement, DomainPropertyInfo, array<Attribute[]) | Initializes a new instance of the ElementPropertyDescriptor class. | |
ElementPropertyDescriptor(ElementTypeDescriptor, ModelElement, DomainPropertyInfo, array<Attribute[]) | Initializes a new instance of the ElementPropertyDescriptor class and specifies a default value provider. |
Top
Properties
Name | Description | |
---|---|---|
AttributeArray | Gets or sets an array of attributes. (Inherited from MemberDescriptor.) | |
Attributes | Gets the collection of attributes for this member. (Inherited from MemberDescriptor.) | |
Category | 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.) | |
ComponentType | Gets the type of the model element to which this property is bound. (Overrides PropertyDescriptor.ComponentType.) | |
Converter | Gets the converter for the described property. (Overrides PropertyDescriptor.Converter.) | |
Description | Gets the description of the described property, as specified in the DescriptionResourceAttribute. (Overrides MemberDescriptor.Description.) | |
DesignTimeOnly | Gets whether this member should be set only at design time, as specified in the DesignOnlyAttribute. (Inherited from MemberDescriptor.) | |
DisplayName | Gets the display name of the described property, as specified in the DisplayNameResourceAttribute. (Overrides MemberDescriptor.DisplayName.) | |
DomainPropertyInfo | Gets the property information object that was used to create this property descriptor. | |
IsBrowsable | Gets a value indicating whether the member is browsable, as specified in the BrowsableAttribute. (Inherited from MemberDescriptor.) | |
IsInstanceBased | Test if this PropertyDescriptor is based on an instance or a static type. | |
IsLocalizable | Gets a value indicating whether this property should be localized, as specified in the LocalizableAttribute. (Inherited from PropertyDescriptor.) | |
IsReadOnly | Gets a value that indicates whether the described property is read-only. (Overrides PropertyDescriptor.IsReadOnly.) | |
ModelElement | Gets the model element that was used to create this property descriptor. | |
Name | Gets the name of the member. (Inherited from MemberDescriptor.) | |
NameHashCode | Gets the hash code for the name of the member, as specified in GetHashCode. (Inherited from MemberDescriptor.) | |
PropertyType | Gets the property type of the described property. (Overrides PropertyDescriptor.PropertyType.) | |
SerializationVisibility | Gets a value indicating whether this property should be serialized, as specified in the DesignerSerializationVisibilityAttribute. (Inherited from PropertyDescriptor.) | |
SupportsChangeEvents | Gets a value indicating whether value change notifications for this property may originate from outside the property descriptor. (Inherited from PropertyDescriptor.) |
Top
Methods
Name | Description | |
---|---|---|
AddValueChanged | (Overrides PropertyDescriptor.AddValueChanged(Object, EventHandler).) | |
CanResetValue | Indicates whether the value of the domain property can be reset. (Overrides PropertyDescriptor.CanResetValue(Object).) | |
CanSetProperty | ||
CreateAttributeCollection | Creates a collection of attributes using the array of attributes passed to the constructor. (Inherited from MemberDescriptor.) | |
CreateInstance | Creates an instance of the specified type. (Inherited from PropertyDescriptor.) | |
Equals | Compares this to another object to see if they are equivalent. (Inherited from PropertyDescriptor.) | |
FillAttributes | Adds the attributes of the PropertyDescriptor to the specified list of attributes in the parent class. (Inherited from PropertyDescriptor.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetChildProperties() | Returns the default PropertyDescriptorCollection. (Inherited from PropertyDescriptor.) | |
GetChildProperties(array<Attribute[]) | Returns a PropertyDescriptorCollection using a specified array of attributes as a filter. (Inherited from PropertyDescriptor.) | |
GetChildProperties(Object) | Returns a PropertyDescriptorCollection for a given object. (Inherited from PropertyDescriptor.) | |
GetChildProperties(Object, array<Attribute[]) | Returns a PropertyDescriptorCollection for a given object using a specified array of attributes as a filter. (Inherited from PropertyDescriptor.) | |
GetEditor | Returns a value editor for the described property. (Overrides PropertyDescriptor.GetEditor(Type).) | |
GetElementPropertyDescriptor | Gets the ElementPropertyDescriptor given a ModelElement and DomainPropertyInfo. | |
GetHashCode | Returns the hash code for this object. (Inherited from PropertyDescriptor.) | |
GetInvocationTarget | This method returns the object that should be used during invocation of members. (Inherited from PropertyDescriptor.) | |
GetSetValueTransactionName | Returns a localized string for the name of the set value transaction. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetTypeFromName | Returns a type using its name. (Inherited from PropertyDescriptor.) | |
GetValue | Gets the value of the domain property. (Overrides PropertyDescriptor.GetValue(Object).) | |
GetValueChangedHandler | Retrieves the current set of ValueChanged event handlers for a specific component (Inherited from PropertyDescriptor.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnValueChanged | Raises the ValueChanged event that you implemented. (Inherited from PropertyDescriptor.) | |
RemoveValueChanged | (Overrides PropertyDescriptor.RemoveValueChanged(Object, EventHandler).) | |
ResetValue | Resets the value of the domain property. (Overrides PropertyDescriptor.ResetValue(Object).) | |
SetProperty | 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. | |
SetValue | Sets the value of the domain property. (Overrides PropertyDescriptor.SetValue(Object, Object).) | |
ShouldSerializeValue | Indicates whether the value of the domain property should be serialized. (Overrides PropertyDescriptor.ShouldSerializeValue(Object).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.