DiagramElementHasDecorators 类

DomainRelationship DiagramElementHasDecorators

继承层次结构

System.Object
  Microsoft.VisualStudio.Modeling.ModelElement
    Microsoft.VisualStudio.Modeling.ElementLink
      Microsoft.VisualStudio.Modeling.DslDefinition.DiagramElementHasDecorators
        Microsoft.VisualStudio.Modeling.DslDefinition.ConnectorHasDecorators
        Microsoft.VisualStudio.Modeling.DslDefinition.ShapeHasDecorators
        Microsoft.VisualStudio.Modeling.DslDefinition.SwimLaneHasDecorators

命名空间:  Microsoft.VisualStudio.Modeling.DslDefinition
程序集:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0.dll 中)

语法

声明
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.DiagramElementHasDecorators.DisplayName",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.DiagramElementHasDecorators.Description",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DomainModelOwnerAttribute(GetType(DslDefinitionModelDomainModel))> _
<CLSCompliantAttribute(True)> _
<DomainRelationshipAttribute(IsEmbedding := True)> _
<DomainObjectIdAttribute("536203bb-d499-4131-9537-7a34e6d76deb")> _
Public MustInherit Class DiagramElementHasDecorators _
    Inherits ElementLink
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.DiagramElementHasDecorators.DisplayName", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.DiagramElementHasDecorators.Description", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DomainModelOwnerAttribute(typeof(DslDefinitionModelDomainModel))]
[CLSCompliantAttribute(true)]
[DomainRelationshipAttribute(IsEmbedding = true)]
[DomainObjectIdAttribute("536203bb-d499-4131-9537-7a34e6d76deb")]
public abstract class DiagramElementHasDecorators : ElementLink

DiagramElementHasDecorators 类型公开以下成员。

构造函数

  名称 说明
受保护的方法 DiagramElementHasDecorators 构造函数。

页首

属性

  名称 说明
公共属性 Decorator 此装饰器属于DomainRole Decorator Diagram元素。
公共属性 DiagramElement 图表元素的 DomainRole DiagramElement Decorators。
公共属性 Id 获取元素的 ID。 (继承自 ModelElement。)
公共属性 IsActive 获取 IsActive 标志并验证该元素是否处于活动状态。 (继承自 ModelElement。)
公共属性 IsDeleted 获取 IsDeleted 标志并检查该元素是否已从该模型中删除。 (继承自 ModelElement。)
公共属性 IsDeleting 获取 IsDeleting 标志并验证该元素是否正在从该模型中删除。 (继承自 ModelElement。)
公共属性 LinkedElements 获取由此元素链接连接的元素的只读集合。 (继承自 ElementLink。)
公共属性 Partition 获取或设置包含元素的 Partition。 (继承自 ModelElement。)
公共属性 Store 获取包含元素的 Store。 (继承自 ModelElement。)

页首

方法

  名称 说明
受保护的方法 CanMerge 验证源元素是否可添加到此元素。 (继承自 ModelElement。)
受保护的方法 ChooseMergeTarget(ElementGroup) 选择目标元素以作为其子元素而接受,该子元素是用户要进行复制、拖动或创建的。 (继承自 ModelElement。)
受保护的方法 ChooseMergeTarget(ElementGroupPrototype) 选择目标元素以作为其子元素而接受,该子元素是用户要进行复制、拖动或创建的。 (继承自 ModelElement。)
公共方法 Copy() 创建模型中元素的副本。 (继承自 ModelElement。)
公共方法 Copy(IEnumerable<Guid>) 创建此元素的复制品、其子链接以及元素。 (继承自 ModelElement。)
公共方法 Delete() 从模型中删除元素。 (继承自 ModelElement。)
公共方法 Delete(array<Guid[]) 从模型中删除元素。 (继承自 ModelElement。)
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法静态成员 GetDecorators 获取修饰器的列表。
公共方法静态成员 GetDiagramElement 获取 DiagramElement。
公共方法 GetDomainClass 获取该元素派生度最高的域类。 (继承自 ModelElement。)
公共方法 GetDomainRelationship 获取该链接实例化的域关系。 (继承自 ElementLink。)
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法静态成员 GetLink 获取一个给定的 DiagramElement 和 Decorator 之间的 DiagramElementHasDecorators 链接。
公共方法静态成员 GetLinks 获取所有在给定的 DiagramElement 和 Decorator 之间的 DiagramElementHasDecorators 链接。
公共方法静态成员 GetLinksToDecorators 获取指向 DiagramElement 的 DiagramElementHasDecorators 链接的列表。
公共方法静态成员 GetLinkToDiagramElement 获取指向 Decorator 的 DiagramElementHasDecorators 链接。
受保护的方法 GetRoleCollection<TCollection, TElement>(Guid) 获取或创建链接元素集合 (继承自 ModelElement。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
受保护的方法 MergeConfigure 合并进程与目标元素相关之后,允许模型元素立即配置其自身。 (继承自 ModelElement。)
受保护的方法 MergeDisconnect 与目标元素断开源元素。 (继承自 ModelElement。)
受保护的方法 MergeRelate 创建此目标元素与指定源元素之间的关系。 (继承自 ModelElement。)
公共方法 MoveBefore 更改连接到元素的链接顺序,将此链接移动到另一链接之前。 (继承自 ElementLink。)
公共方法 MoveToIndex 移动此链接至列表中指定的索引位置。 (继承自 ElementLink。)
受保护的方法 OnCopy 当此元素已创建为另一个元素的副本时调用。 (继承自 ModelElement。)
受保护的方法 OnDeleted 当已从该模型中删除此元素时调用。 (继承自 ModelElement。)
受保护的方法 OnDeleting 当此元素将要被删除时调用。 (继承自 ModelElement。)
受保护的方法 OnResurrected 当此元素已添加回一个模型时调用。 (继承自 ModelElement。)
受保护的方法 OnRolePlayerChanged 更改了角色扮演者时的调用。 (继承自 ElementLink。)
受保护的方法 OnRolePlayerChanging 将要更改角色扮演者时的调用。 (继承自 ElementLink。)
受保护的方法 OnRolePlayerPositionChanged 在角色的位置发生更改时调用。 (继承自 ModelElement。)
受保护的方法 OnRolePlayerPositionChanging 当角色扮演者位置将更改时调用。 (继承自 ModelElement。)
公共方法静态成员 SetDiagramElement 设置 DiagramElement。
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

扩展方法 

  名称 说明
公共扩展方法 AddExtension(Guid) 已重载。 用被标识的域类型的一新的实例扩展此 ModelElement。如果元素已具有该类型的扩展名,则将引发 InvalidOperationException。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 AddExtension(Type) 已重载。 用指定类型的一新的实例扩展此 ModelElement。如果元素已具有该类型的扩展名,则将引发 InvalidOperationException。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 AddExtension(DomainClassInfo) 已重载。 用指定域类型的一新的实例扩展此 ModelElement。如果元素已具有该类型的扩展名,则将引发 InvalidOperationException。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 AddExtension(ExtensionElement) 已重载。 用一指定的扩展 扩展此 ModelElement。如果元素已具有相同类型的扩展名,则将引发 InvalidOperationException。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 AddExtension<T>() 已重载。 用特定类型的一新的实例扩展此 ModelElement。如果元素已具有相同类型的扩展名,则将引发 InvalidOperationException。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 CanDelete 从模型中删除元素。 (由 ImmutabilityExtensionMethods 定义。)
公共扩展方法 GetAllExtensions 横跨嵌入在该 ModelElement 的扩展元素树来返回执行广度优先遍历的可枚举。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 GetBaseElement 返回指定的 ModelElement 参与的虚拟 MEL 根。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 GetExtension(Guid) 已重载。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 GetExtension(Type) 已重载。 从此 ModelElement 可用扩展中获取指定类型的 ExtensionElement。如果该元素没有此类扩展名,则将引发 InvalidOperationException。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 GetExtension(DomainClassInfo) 已重载。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 GetExtension<T>() 已重载。 从此 ModelElement 可用扩展中获取指定类型的 ExtensionElement。如果该元素没有此类扩展名,则将引发 InvalidOperationException。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 GetLocks 获取此元素的锁定标识。这将包括可在分区包含元素中启用的任何锁。 (由 ImmutabilityExtensionMethods 定义。)
公共扩展方法 IsExtendedBy(Guid) 已重载。 询问该 ModelElement 当前是否由特定类型的 ExtensionElement 扩展。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 IsExtendedBy(Type) 已重载。 询问该 ModelElement 当前是否由特定类型的 ExtensionElement 扩展。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 IsExtendedBy(DomainClassInfo) 已重载。 询问该 ModelElement 当前是否由特定类型的 ExtensionElement 扩展。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 IsLocked 测试此元素是否存在一组指定的锁 (由 ImmutabilityExtensionMethods 定义。)
公共扩展方法 RemoveExtension(Type) 已重载。 移除属于特殊类型的该 ModelElement 的扩展名。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 RemoveExtension(Guid) 已重载。 移除属于特殊类型的指定 ModelElement 的扩展名。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 RemoveExtension(DomainClassInfo) 已重载。 移除属于特殊类型的指定 ModelElement 的扩展名。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 RemoveExtension(ExtensionElement) 已重载。 从该 ModelElement 的扩展移除指定的 ExtensionElement。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 SetLocks 设置此元素的锁定标识 (由 ImmutabilityExtensionMethods 定义。)
公共扩展方法 TryGetExtension(Guid) 已重载。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 TryGetExtension(Type) 已重载。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 TryGetExtension(DomainClassInfo) 已重载。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 TryGetExtension<T>() 已重载。 从此 ModelElement 可用扩展中获取指定类型的 ExtensionElement。如果钙元素没有此扩展,则结果为 NULL 。 (由 ModelElementExtensionMethods 定义。)

页首

字段

  名称 说明
公共字段静态成员 DecoratorDomainRoleId 修饰器域角色 ID。
公共字段静态成员 DiagramElementDomainRoleId DiagramElement 域类角色 ID。
公共字段静态成员 DomainClassId DiagramElementHasDecorators 域类 ID。

页首

显式接口实现  

  名称 说明
显式接口实现私有方法 IMergeElements.CanMerge 如果该元素可已与原型的内容合并则返回 true。 (继承自 ModelElement。)
显式接口实现私有方法 IMergeElements.ChooseMergeTarget(ElementGroup) (继承自 ModelElement。)
显式接口实现私有方法 IMergeElements.ChooseMergeTarget(ElementGroupPrototype) (继承自 ModelElement。)
显式接口实现私有方法 IMergeElements.MergeConfigure (继承自 ModelElement。)
显式接口实现私有方法 IMergeElements.MergeDisconnect (继承自 ModelElement。)
显式接口实现私有方法 IMergeElements.MergeRelate (继承自 ModelElement。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.VisualStudio.Modeling.DslDefinition 命名空间