DragSourceContext.Set 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将拖动源信息添加到 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 中的所有形状。