对 ModelElement 对象提供其他运行时类型信息。
继承层次结构
System.Object
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
命名空间: Microsoft.VisualStudio.Modeling.Design
程序集: Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)
语法
声明
Public Class ElementTypeDescriptor _
Inherits CustomTypeDescriptor
public class ElementTypeDescriptor : CustomTypeDescriptor
ElementTypeDescriptor 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
ElementTypeDescriptor(Type) | 表示要使用的 MEL 类型的创建包装类的 ctor。 |
![]() |
ElementTypeDescriptor(ModelElement) | 初始化 ElementTypeDescriptor 类的新实例。 |
![]() |
ElementTypeDescriptor(ICustomTypeDescriptor, ModelElement) | 使用父级自定义类型说明符初始化 ElementTypeDescriptor 类的新实例。 |
![]() |
ElementTypeDescriptor(ICustomTypeDescriptor, Type) | 表示要使用的 MEL 类型的创建包装类的 ctor。 |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
ComponentType | 获取 Type of the model element that this class is representing. 类代表的模型元素。 |
![]() |
ModelElement | 获得该类当前表示的模型元素。 |
![]() |
Store |
页首
方法
页首
备注
此类提供对模型元素动态的自定义类型信息。
域特定语言工具 (DSL 工具) 使用该类型表示在域模型中的模型元素。 此类型控件元素如何按域模型的属性网格处理并提供了方法。中描述的元素。
若要创建自定义元素类型描述符,从该类继承并重写一个或多个成员。
备注
如果域 DSL 定义为类指定字段类型描述符,则定义的生成代码包含一将类型描述符,从 ElementTypeDescriptor派生,具体而言该域类。有关详细信息,请参阅显示相关元素的属性 - 重定向。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。
请参阅
参考
Microsoft.VisualStudio.Modeling.Design 命名空间