DragSourceContext 类

提供拖动最初设置为源信息,请 ElementGroupPrototype 是在源时。为拖动反馈使用,并且为合并 (即,放置/粘贴) 处理。

继承层次结构

System.Object
  Microsoft.VisualStudio.Modeling.Diagrams.DragSourceContext

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

语法

声明
<SerializableAttribute> _
Public Class DragSourceContext
[SerializableAttribute]
public class DragSourceContext

DragSourceContext 类型公开以下成员。

方法

  名称 说明
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法静态成员 GetDiagramId(ElementGroup) 获取源关系图 ID.这会返回 Guid.Empty,如果关系图 ID 未指定或拖动源上下文不可用。
公共方法静态成员 GetDiagramId(ElementGroupPrototype) 获取源关系图 ID.这会返回 Guid.Empty,如果关系图 ID 未指定或拖动源上下文不可用。
公共方法静态成员 GetGhostShapes(ElementGroup) 获取源重影形状集合。
公共方法静态成员 GetGhostShapes(ElementGroupPrototype) 获取源重影形状集合。
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法静态成员 GetInitialBoundingBox(ElementGroup) 返回 (在绝对世界坐标) 包含所有形状的边界框。
公共方法静态成员 GetInitialBoundingBox(ElementGroupPrototype) 返回 (在绝对世界坐标) 包含所有形状的边界框。
公共方法静态成员 GetInitialDragLocation(ElementGroup) 返回鼠标的位置 (绝对世界坐标),在对拖动开始的。
公共方法静态成员 GetInitialDragLocation(ElementGroupPrototype) 返回鼠标的位置 (绝对世界坐标),在对拖动开始的。
公共方法静态成员 GetInitialPrimaryShapeBounds(ElementGroup) 返回区域 (在绝对世界坐标) 在 ElementGroupPrototype 的主要形状。
公共方法静态成员 GetInitialPrimaryShapeBounds(ElementGroupPrototype) 返回区域 (在绝对世界坐标) 在 ElementGroupPrototype 的主要形状。
公共方法静态成员 GetInitialPrimaryShapeId(ElementGroup) 返回主要形状的 GUID 在 ElementGroupPototype 的。
公共方法静态成员 GetInitialPrimaryShapeId(ElementGroupPrototype) 返回主要形状的 GUID 在 ElementGroupPototype 的。
公共方法静态成员 GetProcessId(ElementGroup) 获取数据源进程 ID.这会返回 0; 如果没有进程 ID 指定了或拖动源上下文不可用。
公共方法静态成员 GetProcessId(ElementGroupPrototype) 获取数据源进程 ID.这会返回 0; 如果没有进程 ID 指定了或拖动源上下文不可用。
公共方法静态成员 GetStoreId(ElementGroup) 获取源存储 ID.这会返回 Guid.Empty,如果存储 ID 未指定或拖动源上下文不可用。
公共方法静态成员 GetStoreId(ElementGroupPrototype) 获取源存储 ID.这会返回 Guid.Empty,如果存储 ID 未指定或拖动源上下文不可用。
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法静态成员 Set 添加拖动源信息。 ElementGroupPrototype 的源上下文。
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

线程安全

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

请参见

参考

Microsoft.VisualStudio.Modeling.Diagrams 命名空间