ElementTypeDescriptor Class
Provides additional run-time type information for a ModelElement object.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
System.ComponentModel::CustomTypeDescriptor
Microsoft.VisualStudio.Modeling.Design::ElementTypeDescriptor
Microsoft.VisualStudio.Modeling.Diagrams::PresentationElementTypeDescriptor
Microsoft.VisualStudio.Modeling.DslDefinition::ConnectorHasDecoratorsTypeDescriptor
Microsoft.VisualStudio.Modeling.DslDefinition.Design::DslDefinitionModelElementTypeDescriptor
Microsoft.VisualStudio.Modeling.DslDefinition::ExplorerBehaviorTypeDescriptor
Microsoft.VisualStudio.Modeling.DslDefinition::ShapeHasDecoratorsTypeDescriptor
Microsoft.VisualStudio.Modeling.DslDefinition::XmlSerializationBehaviorTypeDescriptor
| Name | Description | |
|---|---|---|
![]() | ElementTypeDescriptor(ICustomTypeDescriptor^, ModelElement^) | Initializes a new instance of the ElementTypeDescriptor class by using a parent custom type descriptor. |
![]() | ElementTypeDescriptor(ICustomTypeDescriptor^, Type^) | ctor for creating the wrapper class which represents the MEL type to be consumed |
![]() | ElementTypeDescriptor(ModelElement^) | Initializes a new instance of the ElementTypeDescriptor class. |
![]() | ElementTypeDescriptor(Type^) | ctor for creating the wrapper class which represents the MEL type to be consumed |
| Name | Description | |
|---|---|---|
![]() | ComponentType | Gets the Type of the model element that this class is representing. |
![]() | ModelElement | Gets the model element that this class is representing. |
![]() | Store |
| Name | Description | |
|---|---|---|
![]() | CollectionRolePropertiesBrowsable(ModelElement^) | For all the relationships this model element participate, return whether any PropertyDescriptor for Collection properties based on roles is Browsable |
![]() | CreateCollectionPropertyDescriptor(ModelElement^, DomainRoleInfo^, array<Attribute^>^) | |
![]() | CreatePropertyDescriptor(ModelElement^, DomainPropertyInfo^, array<Attribute^>^) | Creates a descriptor for a property of a model element. |
![]() | CreateRolePlayerPropertyDescriptor(ModelElement^, DomainRoleInfo^, array<Attribute^>^) | Creates a descriptor for a role property of a model element. |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetAttributes() | (Inherited from CustomTypeDescriptor.) |
![]() | GetCategory(ElementPropertyDescriptor^) | Returns a localized string for the category of a domain property. |
![]() | GetClassName() | Returns the name of the class this descriptor represents.(Overrides CustomTypeDescriptor::GetClassName().) |
![]() | GetComponentName() | Gets the name of the model element that is represented by this class.(Overrides CustomTypeDescriptor::GetComponentName().) |
![]() | GetConverter() | (Inherited from CustomTypeDescriptor.) |
![]() | GetDefaultEvent() | (Inherited from CustomTypeDescriptor.) |
![]() | GetDefaultProperty() | (Inherited from CustomTypeDescriptor.) |
![]() | GetDescription(ElementPropertyDescriptor^) | Returns a localized string for the description of a domain property. |
![]() | GetDisplayProperties(ModelElement^, PropertyDescriptor^) | Returns a collection of property descriptors for all the properties of a model element. |
![]() | GetDisplayProperties(ModelElement^, Store^, PropertyDescriptor^) | Returns a list of property descriptors corresponding to each domain property |
![]() | GetDomainClassInfo(ModelElement^) | Return the domain class info for the type of element being described. |
![]() | GetDomainPropertyAttributes(DomainPropertyInfo^) | Returns an array of the custom attributes that are applied to the described property. |
![]() | GetEditor(Type^) | (Inherited from CustomTypeDescriptor.) |
![]() | GetEvents() | (Inherited from CustomTypeDescriptor.) |
![]() | GetEvents(array<Attribute^>^) | (Inherited from CustomTypeDescriptor.) |
![]() | GetExtensionProperties(ModelElement^, array<Attribute^>^) | Returns the property descriptors for any extension elements |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetProperties() | Returns a collection of domain property descriptors that contains all the properties of the described type.(Overrides CustomTypeDescriptor::GetProperties().) |
![]() | GetProperties(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^>^).) |
![]() | GetPropertyDescriptorDisplayName(ElementPropertyDescriptor^) | Returns a localized string for the display name of a domain property. |
![]() | GetPropertyOwner(PropertyDescriptor^) | (Inherited from CustomTypeDescriptor.) |
![]() | GetRolePlayerPropertyAttributes(DomainRoleInfo^) | Returns an array of the custom attributes that are applied to the described role property. |
![]() | GetType() | (Inherited from Object.) |
![]() | IncludeCollectionRoleProperties(ModelElement^) | For all the relationships this model element participate, return whether to provide a PropertyDescriptor for Collection properties based on roles. |
![]() | IncludeEmbeddingRelationshipProperties(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. |
![]() | IncludeOppositeRolePlayerProperties(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. |
![]() | IsPropertyDescriptorReadOnly(ElementPropertyDescriptor^) | Returns a value that indicates whether the described property is read-only. |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ShouldCreateCollectionPropertyDescriptor(ModelElement^, DomainRoleInfo^) | For the relationship and the instance level role players involved, return whether to create a property descriptor for the collections |
![]() | ShouldCreatePropertyDescriptor(ModelElement^, DomainPropertyInfo^) | Returns a value that indicates whether a descriptor should be created for the specified domain property. |
![]() | ShouldCreateRolePlayerPropertyDescriptor(ModelElement^, DomainRoleInfo^) | Returns a value that indicates whether a descriptor should be created for the specified role property. |
![]() | ToString() | (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.
Note |
|---|
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.




