Share via


ElementTypeDescriptor Class

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

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

Syntax

'Declaration
Public Class ElementTypeDescriptor _
    Inherits CustomTypeDescriptor
'Usage
Dim instance As ElementTypeDescriptor
public class ElementTypeDescriptor : CustomTypeDescriptor
public ref class ElementTypeDescriptor : public CustomTypeDescriptor
public class ElementTypeDescriptor extends CustomTypeDescriptor

Remarks

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 Defining Domain Type Descriptors.

Inheritance Hierarchy

System.Object
  System.ComponentModel.CustomTypeDescriptor
    Microsoft.VisualStudio.Modeling.Design.ElementTypeDescriptor
      Microsoft.VisualStudio.Modeling.Diagrams.PresentationElementTypeDescriptor
      Microsoft.VisualStudio.Modeling.DslDefinition.Design.DslDefinitionModelElementTypeDescriptor
      Microsoft.VisualStudio.Modeling.DslDefinition.ExplorerBehaviorTypeDescriptor
      Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationBehaviorTypeDescriptor

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.

See Also

Reference

ElementTypeDescriptor Members

Microsoft.VisualStudio.Modeling.Design Namespace

ElementTypeDescriptionProvider

TypeDescriptionProviderAttribute

Change History

Date

History

Reason

July 2008

Added topic.

Content bug fix.