DragSourceContext.Set 方法

定义

将拖动源信息添加到 Elementgroupprototype 创建 elementgroup 的源上下文中。

public:
 static void Set(Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ elementGroupPrototype, Microsoft::VisualStudio::Modeling::Diagrams::PointD initialDragLocation, Microsoft::VisualStudio::Modeling::Diagrams::GhostShapeCollection ^ ghostShapes);
public static void Set (Microsoft.VisualStudio.Modeling.ElementGroupPrototype elementGroupPrototype, Microsoft.VisualStudio.Modeling.Diagrams.PointD initialDragLocation, Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection ghostShapes);
static member Set : Microsoft.VisualStudio.Modeling.ElementGroupPrototype * Microsoft.VisualStudio.Modeling.Diagrams.PointD * Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection -> unit
Public Shared Sub Set (elementGroupPrototype As ElementGroupPrototype, initialDragLocation As PointD, ghostShapes As GhostShapeCollection)

参数

elementGroupPrototype
ElementGroupPrototype

要向其中添加信息的 Elementgroupprototype 创建 elementgroup。

initialDragLocation
PointD

鼠标在绝对世界坐标中的初始位置。

ghostShapes
GhostShapeCollection

虚影形状的集合,该集合表示 Elementgroupprototype 创建 elementgroup 中的所有形状。

适用于