ConnectorHasDecorators 类

定义

DomainRelationship ConnectorHasDecorators

public ref class ConnectorHasDecorators sealed : Microsoft::VisualStudio::Modeling::DslDefinition::DiagramElementHasDecorators
[Microsoft.VisualStudio.Modeling.Design.DescriptionResource("Microsoft.VisualStudio.Modeling.DslDefinition.ConnectorHasDecorators.Description", typeof(Microsoft.VisualStudio.Modeling.DslDefinition.DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[Microsoft.VisualStudio.Modeling.Design.DisplayNameResource("Microsoft.VisualStudio.Modeling.DslDefinition.ConnectorHasDecorators.DisplayName", typeof(Microsoft.VisualStudio.Modeling.DslDefinition.DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[Microsoft.VisualStudio.Modeling.DomainModelOwner(typeof(Microsoft.VisualStudio.Modeling.DslDefinition.DslDefinitionModelDomainModel))]
[Microsoft.VisualStudio.Modeling.DomainObjectId("2dd45139-6994-4cc9-8de0-f392926c5280")]
[Microsoft.VisualStudio.Modeling.DomainRelationship(IsEmbedding=true)]
[System.CLSCompliant(true)]
[System.ComponentModel.TypeDescriptionProvider(typeof(Microsoft.VisualStudio.Modeling.DslDefinition.ConnectorHasDecoratorsTypeDescriptionProvider))]
public sealed class ConnectorHasDecorators : Microsoft.VisualStudio.Modeling.DslDefinition.DiagramElementHasDecorators
[<Microsoft.VisualStudio.Modeling.Design.DescriptionResource("Microsoft.VisualStudio.Modeling.DslDefinition.ConnectorHasDecorators.Description", typeof(Microsoft.VisualStudio.Modeling.DslDefinition.DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")>]
[<Microsoft.VisualStudio.Modeling.Design.DisplayNameResource("Microsoft.VisualStudio.Modeling.DslDefinition.ConnectorHasDecorators.DisplayName", typeof(Microsoft.VisualStudio.Modeling.DslDefinition.DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")>]
[<Microsoft.VisualStudio.Modeling.DomainModelOwner(typeof(Microsoft.VisualStudio.Modeling.DslDefinition.DslDefinitionModelDomainModel))>]
[<Microsoft.VisualStudio.Modeling.DomainObjectId("2dd45139-6994-4cc9-8de0-f392926c5280")>]
[<Microsoft.VisualStudio.Modeling.DomainRelationship(IsEmbedding=true)>]
[<System.CLSCompliant(true)>]
[<System.ComponentModel.TypeDescriptionProvider(typeof(Microsoft.VisualStudio.Modeling.DslDefinition.ConnectorHasDecoratorsTypeDescriptionProvider))>]
type ConnectorHasDecorators = class
    inherit DiagramElementHasDecorators
Public NotInheritable Class ConnectorHasDecorators
Inherits DiagramElementHasDecorators
继承
属性

构造函数

ConnectorHasDecorators(Connector, Decorator)

构造函数在给定连接器所在的同一分区中创建 ConnectorHasDecorators 链接

ConnectorHasDecorators(Partition, RoleAssignment[])

构造函数

ConnectorHasDecorators(Partition, RoleAssignment[], PropertyAssignment[])

构造函数

ConnectorHasDecorators(Store, RoleAssignment[])

构造函数

ConnectorHasDecorators(Store, RoleAssignment[], PropertyAssignment[])

构造函数

字段

ConnectorDomainRoleId

连接器域角色 Id。

DecoratorDomainRoleId

修饰器域角色 Id。

DomainClassId

ConnectorHasDecorators 域类 Id。

IsMoveableDomainPropertyId

IsMoveable 域属性 Id。

OffsetFromLineDomainPropertyId

OffsetFromLine 域属性 Id。

OffsetFromShapeDomainPropertyId

OffsetFromShape 域属性 Id。

PositionDomainPropertyId

位置域属性 Id。

属性

Connector

DomainRole 连接器

Decorator

修饰器所属的 DomainRole 修饰器连接器。

DiagramElement

获取元素播放连接器域角色。 关系图元素的修饰器。

Id

此元素的唯一标识符。

(继承自 ModelElement)
IsActive

如果该元素当前在模型内处于活动状态,则返回 true; 如果该元素已删除或正在被删除,则返回 false。

(继承自 ModelElement)
IsDeleted

已从模型中删除了元素。 (删除的元素不会立即被销毁,使 undo 命令可以撤消删除元素。 )

(继承自 ModelElement)
IsDeleting

已从模型中删除了元素。 (删除的元素不会立即被销毁,使 undo 命令可以撤消删除元素。 )

(继承自 ModelElement)
IsMoveable

获取或设置 IsMoveable 域属性的值。 如果为 true,则用户可以移动修饰器。

LinkedElements

获取由此元素链接连接的元素的只读集合。

(继承自 ElementLink)
OffsetFromLine

获取或设置 OffsetFromLine 域属性的值。 修饰器从该行相对于其默认位置的偏移(英寸)。

OffsetFromShape

获取或设置 OffsetFromShape 域属性的值。 修饰器从该形状相对于其默认位置的偏移(英寸)。

Partition

获取或设置包含此元素的分区实例。

(继承自 ModelElement)
Position

获取或设置位置域属性的值。 修饰器的默认位置。

Store

获取包含此元素的存储实例。

(继承自 ModelElement)

方法

CanMerge(ProtoElementBase, ElementGroupPrototype)

返回一个值,该值指示是否可以将指定根 ProtoElement 表示的源元素添加到此元素。

(继承自 ModelElement)
ChooseMergeTarget(ElementGroup)

获取要用作 ElementGroup 合并进程目标的 ModelElement。
当此元素是合并目标时,合并进程将调用此方法。
这会为此元素提供将目标更改为其自身之外的其他操作的机会。

(继承自 ModelElement)
ChooseMergeTarget(ElementGroupPrototype)

获取要用作 Elementgroupprototype 创建 elementgroup 合并进程目标的 ModelElement。
当此元素是合并目标时,合并进程将调用此方法。
这会为此元素提供将目标更改为其自身之外的其他操作的机会。

(继承自 ModelElement)
Copy()

在模型中创建元素的副本。

(继承自 ModelElement)
Copy(IEnumerable<Guid>)

在模型中创建元素的副本。

(继承自 ModelElement)
Delete()

从模型中删除元素。

(继承自 ModelElement)
Delete(Guid[])

从模型中删除元素。

(继承自 ModelElement)
GetConnector(Decorator)

获取连接器。

GetDecorators(Connector)

获取修饰器的列表。

GetDomainClass()

获取此元素的派生程度最高的域类。

(继承自 ModelElement)
GetDomainRelationship()

获取此 ElementLink 实例化的域关系。

(继承自 ElementLink)
GetLink(Connector, Decorator)

获取给定 Connectorand 与修饰器之间的一个 ConnectorHasDecorators 链接。

GetLinks(Connector, Decorator)

获取给定连接器与修饰器之间的任何 ConnectorHasDecorators 链接。

GetLinksToDecorators(Connector)

获取指向连接器的 ConnectorHasDecorators 链接的列表。

GetLinkToConnector(Decorator)

获取指向修饰器的 ConnectorHasDecorators 链接。

GetRoleCollection<TCollection,TElement>(Guid)

获取或创建链接元素集合

(继承自 ModelElement)
MergeConfigure(ElementGroup)

由合并进程调用,以允许此模型元素在合并进程与其关联的目标元素后立即配置自身。

(继承自 ModelElement)
MergeDisconnect(ModelElement)

执行相对于 MergeRelate 的操作(即从当前的元素断开连接) (删除) MergeRelate 创建的链接。

(继承自 ModelElement)
MergeRelate(ModelElement, ElementGroup)

由合并进程调用,用于创建此 target 元素与指定源元素之间的关系。 通常,父子关系在 (父) 的目标元素和) 子元素 (的源元素之间建立,但可以建立任何关系。

(继承自 ModelElement)
MoveBefore(DomainRoleInfo, ElementLink)

将此链接移动到在该关系列表中的特定链接之前扮演某个特定角色的元素列表中。

(继承自 ElementLink)
MoveToIndex(DomainRoleInfo, Int32)

将此链接从扮演特定角色的元素所包含的关系列表移动到该关系列表中的指定索引处。

(继承自 ElementLink)
OnCopy(ModelElement)

当已创建元素的副本时调用。 在重复元素上调用方法。

(继承自 ModelElement)
OnDeleted()

在元素已删除之后由模型调用。

(继承自 ModelElement)
OnDeleting()

在删除元素之前由模型调用。

(继承自 ModelElement)
OnResurrected()

在复活元素后,由模型调用 (放回存储) 。

(继承自 ModelElement)
OnRolePlayerChanged(DomainRoleInfo, ModelElement, ModelElement, Int32)

当角色扮演者已更改时调用

(继承自 ElementLink)
OnRolePlayerChanging(DomainRoleInfo, ModelElement, ModelElement, Int32)

当角色扮演者将要更改时调用

(继承自 ElementLink)
OnRolePlayerPositionChanged(DomainRoleInfo, ElementLink, Int32, Int32)

在角色扮演者位置发生更改时通知的虚拟方法。

(继承自 ModelElement)
OnRolePlayerPositionChanging(DomainRoleInfo, ElementLink, Int32, Int32)

在角色扮演者位置将发生变化时通知的虚拟方法。

(继承自 ModelElement)
SetConnector(Decorator, Connector)

设置连接器。

显式接口实现

IMergeElements.CanMerge(ProtoElementBase, ElementGroupPrototype) (继承自 ModelElement)
IMergeElements.ChooseMergeTarget(ElementGroup) (继承自 ModelElement)
IMergeElements.ChooseMergeTarget(ElementGroupPrototype) (继承自 ModelElement)
IMergeElements.MergeConfigure(ElementGroup) (继承自 ModelElement)
IMergeElements.MergeDisconnect(ModelElement) (继承自 ModelElement)
IMergeElements.MergeRelate(ModelElement, ElementGroup) (继承自 ModelElement)

扩展方法

AddExtension(ModelElement, DomainClassInfo)

使用指定域类型的新实例化扩展扩展此 ModelElement。 如果该元素已经具有该类型的扩展,则将引发 InvalidOperationException。

AddExtension(ModelElement, ExtensionElement)

使用特定扩展扩展此 ModelElement。 如果该元素已具有相同类型的扩展,则将引发 InvalidOperationException。

AddExtension(ModelElement, Guid)

将此 ModelElement 扩展到已标识域类型的新实例化扩展。 如果该元素已经具有该类型的扩展,则将引发 InvalidOperationException。

AddExtension(ModelElement, Type)

使用指定类型的新实例化扩展来扩展此 ModelElement。 如果该元素已经具有该类型的扩展,则将引发 InvalidOperationException。

AddExtension<T>(ModelElement)

使用特定类型的新实例化扩展来扩展此 ModelElement。 如果该元素已具有相同类型的扩展,则将引发 InvalidOperationException。

GetAllExtensions(ModelElement)

返回一个可枚举,它在此 ModelElement 中嵌入的扩展元素树中执行广度优先遍历。

GetBaseElement(ModelElement)

返回指定的 ModelElement 参与到的虚拟 MEL 的根。

GetExtension(ModelElement, DomainClassInfo)
GetExtension(ModelElement, Guid)
GetExtension(ModelElement, Type)

从此 ModelElement 的可用扩展中获取指定类型的 Extensionextendselement.extensionelement。 如果元素没有此类扩展,则将引发 InvalidOperationException。

GetExtension<T>(ModelElement)

从此 ModelElement 的可用扩展中获取指定类型的 Extensionextendselement.extensionelement。 如果元素没有此类扩展,则将引发 InvalidOperationException。

IsExtendedBy(ModelElement, DomainClassInfo)

查询此 ModelElement 当前是否由特定类型的 Extensionextendselement.extensionelement 扩展。

IsExtendedBy(ModelElement, Guid)

查询此 ModelElement 当前是否由特定类型的 Extensionextendselement.extensionelement 扩展。

IsExtendedBy(ModelElement, Type)

查询此 ModelElement 当前是否由特定类型的 Extensionextendselement.extensionelement 扩展。

RemoveExtension(ModelElement, DomainClassInfo)

删除指定 ModelElement 的任何属于特定类型的扩展。

RemoveExtension(ModelElement, ExtensionElement)

从此 ModelElement 的扩展中删除指定的 Extensionextendselement.extensionelement。

RemoveExtension(ModelElement, Guid)

删除指定 ModelElement 的任何属于特定类型的扩展。

RemoveExtension(ModelElement, Type)

删除此 ModelElement 的任何属于特定类型的扩展。

TryGetExtension(ModelElement, DomainClassInfo)
TryGetExtension(ModelElement, Guid)
TryGetExtension(ModelElement, Type)
TryGetExtension<T>(ModelElement)

从此 ModelElement 的可用扩展中获取指定类型的 Extensionextendselement.extensionelement。 如果此元素没有此类扩展,则结果将为 null。

CanDelete(ModelElement, Guid[])

从模型中删除元素。

GetLocks(ModelElement)

获取此元素的锁定标志。 这将包括在包含元素的分区上启用的任何锁。

IsLocked(ModelElement, Locks)

测试此元素是否具有指定的一组锁

SetLocks(ModelElement, Locks)

设置此元素的锁定标志

适用于