DesignSurfaceElementOperations 类
通过对 GhostShapeCollections 添加支持扩展 IMS ElementOperations 类 。
继承层次结构
System.Object
Microsoft.VisualStudio.Modeling.ElementOperations
Microsoft.VisualStudio.Modeling.Diagrams.DesignSurfaceElementOperations
命名空间: Microsoft.VisualStudio.Modeling.Diagrams
程序集: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)
语法
声明
Public Class DesignSurfaceElementOperations _
Inherits ElementOperations
public class DesignSurfaceElementOperations : ElementOperations
DesignSurfaceElementOperations 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
DesignSurfaceElementOperations(IServiceProvider, Diagram) | 初始化指定关系图的 DesignSurfaceElementOperations 类的一个新的事例。假设模型分区是模型元素和关系图可见的。 | |
DesignSurfaceElementOperations(IServiceProvider, Partition) | 初始化 DesignSurfaceElementOperations 类的新实例。请注意虽然没有指定关系图,将不支持多个关系图和任何合并的 PELs 在默认的关系图结束(第一个创建的关系图视图模型) | |
DesignSurfaceElementOperations(IServiceProvider, Partition, Diagram) | 初始化 DesignSurfaceElementOperations 类的新实例。 |
页首
属性
名称 | 说明 | |
---|---|---|
Diagram | ||
Partition | (继承自 ElementOperations。) | |
ServiceProvider | (继承自 ElementOperations。) | |
Store | (继承自 ElementOperations。) |
页首
方法
名称 | 说明 | |
---|---|---|
AddCustomFormat | 使用指定的 ModelElements 集合添加一个或多个自定义数据格式到指定的 IDataObject。 (继承自 ElementOperations。) | |
AddElementGroupFormat(IDataObject, ICollection<ModelElement>, ClosureType) | 使用指定的 ModelElements 集合添加 the ElementGroupPrototype 格式到指定的 IDataObject。此方法调用以下 3 个可重写的方法(按顺序)。CreateElementGroup b。MarkRootElements c。CreateElementGroupPrototype 然后它将创建的 CreateElementGroupPrototype 储存在数据参数中。 (继承自 ElementOperations。) | |
AddElementGroupFormat(IDataObject, ICollection<ModelElement>, ClosureType, Boolean) | 使用指定的 ModelElements 集合添加 the ElementGroupPrototype 格式到指定的 IDataObject。为了创建模型元素集合,可以从派生类中调用以强制要求加载元素链接。 (继承自 ElementOperations。) | |
AddGhostShapesContext | 在指定的 IDataObject 中添加一个 GhostShapeCollection 到 ElementGroupPrototype。 | |
CanAddCustomFormat | 返回指示 ModelElement 集合是否可用于创建自定义格式的值。 (继承自 ElementOperations。) | |
CanAddElementGroupFormat | 返回指示 ModelElement 集合是否可用于创建 ElementGroupPrototype 格式的值。 (继承自 ElementOperations。) | |
CanCopy(ICollection<ModelElement>) | 获取指示 ModelElements 集合是否可以被复制到 IDataObject 的值。 (继承自 ElementOperations。) | |
CanCopy(ICollection<ModelElement>, ClosureType) | 获取指示 ModelElements 集合是否可以被复制到 IDataObject 的值。调用 CanCopyCore 完成工作。 (继承自 ElementOperations。) | |
CanCopyCore | 获取指示 ModelElements 集合是否可以被复制到 IDataObject 的值。 (继承自 ElementOperations。) | |
CanDelete(ModelElement, array<Guid[]) | 询问一个指定的元素是否能删除,考虑任何 IMS 锁,其适用于元素删除外壳中的任何元素。 (继承自 ElementOperations。) | |
CanDelete(IEnumerable<ModelElement>, array<Guid[]) | 询问一个指定的元素组是否能删除,考虑任何 IMS 锁,其适用于元素完整删除外壳中的任何元素。 (继承自 ElementOperations。) | |
CanMerge | 返回一个从 ElementGroupPrototype IDataObject 的是否的值进行组合 (即,粘贴或删除) 为目标 ModelElement。 (继承自 ElementOperations。) | |
CanMergeElementGroupPrototype(ModelElement, ElementGroupPrototype) | (重写 ElementOperations.CanMergeElementGroupPrototype(ModelElement, ElementGroupPrototype)。) | |
CanMergeElementGroupPrototype(ModelElement, ProtoElementBase, ElementGroupPrototype) | (重写 ElementOperations.CanMergeElementGroupPrototype(ModelElement, ProtoElementBase, ElementGroupPrototype)。) | |
CanMove | 获取一个值,该值指示是否可以移动 ModelElements 集合。 (继承自 ElementOperations。) | |
ChooseMergeTarget(ModelElement, ElementGroup) | 获取为其给定 targetElement 的合并的目标元素。这给 ElementOperations 机会更改为合并预期目标。默认情况下,此方法将给于目标元素更改预期目标的机会。 (重写 ElementOperations.ChooseMergeTarget(ModelElement, ElementGroup)。) | |
ChooseMergeTarget(ModelElement, ElementGroupPrototype) | 获取为其给定 targetElement 的合并的目标元素。这给 ElementOperations 机会更改为合并预期目标。默认情况下,此方法将给于目标元素更改预期目标的机会。 (重写 ElementOperations.ChooseMergeTarget(ModelElement, ElementGroupPrototype)。) | |
Copy(IDataObject, ICollection<ModelElement>) | 以多种数据格式将 ModelElements 集合复制到指定 IDataObject。 (继承自 ElementOperations。) | |
Copy(IDataObject, ICollection<ModelElement>, ClosureType) | 以多种数据格式将 ModelElements 集合复制到指定 IDataObject。 (继承自 ElementOperations。) | |
Copy(IDataObject, ICollection<ModelElement>, PointF) | 以多种数据格式将 ModelElements 集合复制到指定 IDataObject。 (继承自 ElementOperations。) | |
Copy(IDataObject, ICollection<ModelElement>, ClosureType, PointF) | 以多种数据格式将 ModelElements 集合复制到指定 IDataObject。 (继承自 ElementOperations。) | |
CreateElementGroup | 创建 ClosureElementGroup (继承自 ElementOperations。) | |
CreateElementGroupPrototype | (继承自 ElementOperations。) | |
Equals | 确定指定的对象是否等于当前对象。 (继承自 Object。) | |
Finalize | 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。) | |
GetAssociatedModelElement | 通过 PresentationViewsSubject 关系,获取与指定的 protoPresentationElement 相关的 ProtoElement。 | |
GetHashCode | 作为默认哈希函数。 (继承自 Object。) | |
GetTargetDiagramId | 获取由源于此类的实例的 ElementGroupPrototype Merge/CanMerge 锁定的 Diagram 的 ID。 | |
GetType | 获取当前实例的 Type。 (继承自 Object。) | |
MarkRootElements | 标记在 elementGroup 参数中的 Mark RootElements。 (继承自 ElementOperations。) | |
MemberwiseClone | 创建当前 Object 的浅表副本。 (继承自 Object。) | |
Merge(ModelElement, IDataObject) | 合并 (即,粘贴或删除) 从 IDataObject 的 ElementGroupPrototype 到目标 ModelElement。 (继承自 ElementOperations。) | |
Merge(PresentationElement, IDataObject, PointF) | 合并 (即,粘贴或删除) 从 IDataObject 的 ElementGroupPrototype 到目标 ModelElement。 | |
MergeElementGroup | 用指定的目标 ModelElement 合并源 ModelElement Merges ElementGroup。 (继承自 ElementOperations。) | |
MergeElementGroupPrototype(ModelElement, ElementGroupPrototype) | (重写 ElementOperations.MergeElementGroupPrototype(ModelElement, ElementGroupPrototype)。) | |
MergeElementGroupPrototype(ModelElement, ElementGroupPrototype, PointF) | 用指定的目标 ModelElement 合并源 ModelElement Merges ElementGroupPrototype。 | |
OnElementsReconstituted | 在 ElementGroupPrototype 中的元素重建后,但在其连接到该模型的其余部分之前,MergeElementGroupPrototype 立即进行调用。 (继承自 ElementOperations。) | |
OnMerged | 在提交本地事务之前,MergeElementGroupPrototype 立即进行调用。规则在本地事务期间排队并当事务提交时激发。本地事务包装重建并连接元素。此方法引发没有相应 protoElement MEL 的各个根 protoElement PEL 的自定义模型事件 ShapeElementViewFixupEvent。此事件的规则处理连接该 PEL 到关系图,如果它还没有准备完毕。 (重写 ElementOperations.OnMerged(MergeElementGroupEventArgs)。) | |
OnMerging | 在已选择目标元素之后,但在其连接到该模型的其余部分之前,MergeElementGroupPrototype 立即进行调用。 (继承自 ElementOperations。) | |
PropagateElementGroupContextToTransaction | (重写 ElementOperations.PropagateElementGroupContextToTransaction(ModelElement, ElementGroup, Transaction)。) | |
ToString | 返回表示当前对象的字符串。 (继承自 Object。) |
页首
事件
名称 | 说明 | |
---|---|---|
ElementsReconstituted | 在 ElementGroupPrototype 中的元素重建后,但在其连接到该模型的其余部分之前,MergeElementGroupPrototype 立即进行调用。 (继承自 ElementOperations。) | |
Merged | 在提交本地事务之前,MergeElementGroupPrototype 立即进行调用。规则在本地事务期间排队并当事务提交时激发。本地事务包装重建并连接元素。 (继承自 ElementOperations。) | |
Merging | 在已选择目标元素之后,但在其连接到该模型的其余部分之前,MergeElementGroupPrototype 立即进行调用。 (继承自 ElementOperations。) |
页首
字段
名称 | 说明 | |
---|---|---|
TargetDiagramIdContextKey | 合并的 ElementGroupPrototypes TargetConext 关系图的元素 Id 的键值 |
页首
备注
从此类派生创建自定义数据格式对复制并粘贴操作。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。