DslDefinitionModelElementTypeDescriptor 类

定义

DomainPath 或 PropertyPath 的 TypeDescriptor。

public ref class DslDefinitionModelElementTypeDescriptor : Microsoft::VisualStudio::Modeling::Design::ElementTypeDescriptor
public class DslDefinitionModelElementTypeDescriptor : Microsoft.VisualStudio.Modeling.Design.ElementTypeDescriptor
type DslDefinitionModelElementTypeDescriptor = class
    inherit ElementTypeDescriptor
Public Class DslDefinitionModelElementTypeDescriptor
Inherits ElementTypeDescriptor
继承
DslDefinitionModelElementTypeDescriptor

构造函数

DslDefinitionModelElementTypeDescriptor(ICustomTypeDescriptor, ModelElement)

DslDefinitionModelElementTypeDescriptor .ctor。 它直接调用基类。

属性

ComponentType

返回所选模型元素的组件类型。

(继承自 ElementTypeDescriptor)
ModelElement

返回此描述符包装的模型元素

(继承自 ElementTypeDescriptor)
Store

用于从中检索 DomainInfo 的存储区。 如果要描述类型,这是仅用于反射的虚拟存储。

(继承自 ElementTypeDescriptor)

方法

CollectionRolePropertiesBrowsable(ModelElement)

对于此模型元素参与的所有关系,返回基于角色的集合属性的任何 PropertyDescriptor 是否可浏览

(继承自 ElementTypeDescriptor)
CreateCollectionPropertyDescriptor(ModelElement, DomainRoleInfo, Attribute[]) (继承自 ElementTypeDescriptor)
CreatePropertyDescriptor(ModelElement, DomainPropertyInfo, Attribute[])

为给定的 DomainProperty 创建 PropertyDescriptor

CreateRolePlayerPropertyDescriptor(ModelElement, DomainRoleInfo, Attribute[])

用于创建 PropertyDescriptor 的方法,该方法描述要在网格中显示的关系和角色。

GetCategory(ElementPropertyDescriptor)

返回域属性的本地化类别

(继承自 ElementTypeDescriptor)
GetClassName()

返回此描述符表示的类的名称。

(继承自 ElementTypeDescriptor)
GetComponentName()

对象的名称; 如果对象没有名称,则为空字符串。

(继承自 ElementTypeDescriptor)
GetDescription(ElementPropertyDescriptor)

返回域属性的本地化说明

(继承自 ElementTypeDescriptor)
GetDisplayProperties(ModelElement, PropertyDescriptor)

返回对应于每个域属性的属性描述符列表

(继承自 ElementTypeDescriptor)
GetDisplayProperties(ModelElement, Store, PropertyDescriptor)

返回对应于每个域属性的属性描述符列表

(继承自 ElementTypeDescriptor)
GetDomainClassInfo(ModelElement)

返回所描述的元素类型的域类信息。

(继承自 ElementTypeDescriptor)
GetDomainPropertyAttributes(DomainPropertyInfo)

获取指定 DomainProperty 的自定义特性的数组。

(继承自 ElementTypeDescriptor)
GetExtensionProperties(ModelElement, Attribute[])

返回任何扩展元素的属性说明符

GetProperties()

重写基,为模型 elemnt 中的每个属性提供属性说明符。

GetProperties(Attribute[])

方法为指定的 ModelElement 提供自己的属性描述符集。

GetPropertyDescriptorDisplayName(ElementPropertyDescriptor)

为传入的 elementPropertyDescriptor 返回本地化的 DisplayName

(继承自 ElementTypeDescriptor)
GetRolePlayerPropertyAttributes(DomainRoleInfo)

获取指定 DomainRole 的自定义特性的数组。

(继承自 ElementTypeDescriptor)
IncludeCollectionRoleProperties(ModelElement)

对于此模型元素参与的所有关系,返回是否为基于角色的集合属性提供 PropertyDescriptor。

(继承自 ElementTypeDescriptor)
IncludeEmbeddingRelationshipProperties(ModelElement)

对于此模型元素参与的所有关系,如果这是一个嵌入的模型元素,则返回是否显示在 DomainRelationship 上定义的 DomainProperty。

(继承自 ElementTypeDescriptor)
IncludeOppositeRolePlayerProperties(ModelElement)

对于此模型元素参与的所有关系,如果多重性为 One/ZeroOne,则返回是否显示相反角色扮演者的 ElementName 属性

(继承自 ElementTypeDescriptor)
IsPropertyDescriptorReadOnly(ElementPropertyDescriptor)

返回此元素属性描述符是否为只读。

(继承自 ElementTypeDescriptor)
ShouldCreateCollectionPropertyDescriptor(ModelElement, DomainRoleInfo)

对于涉及的关系和实例级别角色扮演者,返回是否为集合创建属性描述符

(继承自 ElementTypeDescriptor)
ShouldCreatePropertyDescriptor(ModelElement, DomainPropertyInfo)

获取是否为 givne 属性创建类型描述符。

ShouldCreateRolePlayerPropertyDescriptor(ModelElement, DomainRoleInfo)

对于涉及的关系和实例级别角色扮演者,返回是否为相反角色扮演者创建属性描述符

(继承自 ElementTypeDescriptor)

适用于