ElementTypeDescriptor Class

 

Provides additional run-time type information for a ModelElement object.

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


public ref class ElementTypeDescriptor : CustomTypeDescriptor

NameDescription
System_CAPS_protmethodElementTypeDescriptor(ICustomTypeDescriptor^, ModelElement^)

Initializes a new instance of the ElementTypeDescriptor class by using a parent custom type descriptor.

System_CAPS_protmethodElementTypeDescriptor(ICustomTypeDescriptor^, Type^)

ctor for creating the wrapper class which represents the MEL type to be consumed

System_CAPS_protmethodElementTypeDescriptor(ModelElement^)

Initializes a new instance of the ElementTypeDescriptor class.

System_CAPS_protmethodElementTypeDescriptor(Type^)

ctor for creating the wrapper class which represents the MEL type to be consumed

NameDescription
System_CAPS_protpropertyComponentType

Gets the Type of the model element that this class is representing.

System_CAPS_pubpropertyModelElement

Gets the model element that this class is representing.

System_CAPS_protpropertyStore

NameDescription
System_CAPS_protmethodCollectionRolePropertiesBrowsable(ModelElement^)

For all the relationships this model element participate, return whether any PropertyDescriptor for Collection properties based on roles is Browsable

System_CAPS_protmethodCreateCollectionPropertyDescriptor(ModelElement^, DomainRoleInfo^, array<Attribute^>^)

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

Creates a descriptor for a property of a model element.

System_CAPS_protmethodCreateRolePlayerPropertyDescriptor(ModelElement^, DomainRoleInfo^, array<Attribute^>^)

Creates a descriptor for a role property of a model element.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetAttributes()

(Inherited from CustomTypeDescriptor.)

System_CAPS_protmethodGetCategory(ElementPropertyDescriptor^)

Returns a localized string for the category of a domain property.

System_CAPS_pubmethodGetClassName()

Returns the name of the class this descriptor represents.(Overrides CustomTypeDescriptor::GetClassName().)

System_CAPS_pubmethodGetComponentName()

Gets the name of the model element that is represented by this class.(Overrides CustomTypeDescriptor::GetComponentName().)

System_CAPS_pubmethodGetConverter()

(Inherited from CustomTypeDescriptor.)

System_CAPS_pubmethodGetDefaultEvent()

(Inherited from CustomTypeDescriptor.)

System_CAPS_pubmethodGetDefaultProperty()

(Inherited from CustomTypeDescriptor.)

System_CAPS_protmethodGetDescription(ElementPropertyDescriptor^)

Returns a localized string for the description of a domain property.

System_CAPS_protmethodGetDisplayProperties(ModelElement^, PropertyDescriptor^)

Returns a collection of property descriptors for all the properties of a model element.

System_CAPS_protmethodGetDisplayProperties(ModelElement^, Store^, PropertyDescriptor^)

Returns a list of property descriptors corresponding to each domain property

System_CAPS_protmethodGetDomainClassInfo(ModelElement^)

Return the domain class info for the type of element being described.

System_CAPS_protmethodGetDomainPropertyAttributes(DomainPropertyInfo^)

Returns an array of the custom attributes that are applied to the described property.

System_CAPS_pubmethodGetEditor(Type^)

(Inherited from CustomTypeDescriptor.)

System_CAPS_pubmethodGetEvents()

(Inherited from CustomTypeDescriptor.)

System_CAPS_pubmethodGetEvents(array<Attribute^>^)

(Inherited from CustomTypeDescriptor.)

System_CAPS_protmethodGetExtensionProperties(ModelElement^, array<Attribute^>^)

Returns the property descriptors for any extension elements

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetProperties()

Returns a collection of domain property descriptors that contains all the properties of the described type.(Overrides CustomTypeDescriptor::GetProperties().)

System_CAPS_pubmethodGetProperties(array<Attribute^>^)

Returns a collection of domain property descriptors that contains all the properties of the described type, filtered by the specified attributes.(Overrides CustomTypeDescriptor::GetProperties(array<Attribute^>^).)

System_CAPS_protmethodGetPropertyDescriptorDisplayName(ElementPropertyDescriptor^)

Returns a localized string for the display name of a domain property.

System_CAPS_pubmethodGetPropertyOwner(PropertyDescriptor^)

(Inherited from CustomTypeDescriptor.)

System_CAPS_protmethodGetRolePlayerPropertyAttributes(DomainRoleInfo^)

Returns an array of the custom attributes that are applied to the described role property.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodIncludeCollectionRoleProperties(ModelElement^)

For all the relationships this model element participate, return whether to provide a PropertyDescriptor for Collection properties based on roles.

System_CAPS_protmethodIncludeEmbeddingRelationshipProperties(ModelElement^)

For the specified model element, returns a value that indicates whether to add properties of the target element of any embedded relationships that do not allow duplicates.

System_CAPS_protmethodIncludeOppositeRolePlayerProperties(ModelElement^)

For the specified model element, returns a value that indicates whether to add role properties for zero-to-one and one-to-one relationships.

System_CAPS_protmethodIsPropertyDescriptorReadOnly(ElementPropertyDescriptor^)

Returns a value that indicates whether the described property is read-only.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodShouldCreateCollectionPropertyDescriptor(ModelElement^, DomainRoleInfo^)

For the relationship and the instance level role players involved, return whether to create a property descriptor for the collections

System_CAPS_protmethodShouldCreatePropertyDescriptor(ModelElement^, DomainPropertyInfo^)

Returns a value that indicates whether a descriptor should be created for the specified domain property.

System_CAPS_protmethodShouldCreateRolePlayerPropertyDescriptor(ModelElement^, DomainRoleInfo^)

Returns a value that indicates whether a descriptor should be created for the specified role property.

System_CAPS_pubmethodToString()

(Inherited from Object.)

This class provides dynamic custom type information for model elements.

The Domain-Specific Language Tools (DSL Tools) use this type to represent the model elements in a domain model. This type controls how an element is handled by the property grid in the domain model and provides methods for working with the described element.

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

System_CAPS_noteNote

If your DSL definition specifies a domain type descriptor for a domain class, then the generated code for the definition will contain a type descriptor, derived from ElementTypeDescriptor, specifically for that domain class. For more information, see Displaying Properties of Related Elements - redirection.

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: