DragSourceContext.GetInitialDragLocation 方法

定义

重载

GetInitialDragLocation(ElementGroup)

在拖动开始时,返回鼠标 (在绝对世界坐标) 的位置。

GetInitialDragLocation(ElementGroupPrototype)

在拖动开始时,返回鼠标 (在绝对世界坐标) 的位置。

GetInitialDragLocation(ElementGroup)

在拖动开始时,返回鼠标 (在绝对世界坐标) 的位置。

public:
 static Microsoft::VisualStudio::Modeling::Diagrams::PointD GetInitialDragLocation(Microsoft::VisualStudio::Modeling::ElementGroup ^ elementGroup);
public static Microsoft.VisualStudio.Modeling.Diagrams.PointD GetInitialDragLocation (Microsoft.VisualStudio.Modeling.ElementGroup elementGroup);
static member GetInitialDragLocation : Microsoft.VisualStudio.Modeling.ElementGroup -> Microsoft.VisualStudio.Modeling.Diagrams.PointD
Public Shared Function GetInitialDragLocation (elementGroup As ElementGroup) As PointD

参数

elementGroup
ElementGroup

已将 DragSourceContext 保存到的 ElementGroup。

返回

PointD

拖动开始时,鼠标 (绝对世界坐标) 的位置。

适用于

GetInitialDragLocation(ElementGroupPrototype)

在拖动开始时,返回鼠标 (在绝对世界坐标) 的位置。

public:
 static Microsoft::VisualStudio::Modeling::Diagrams::PointD GetInitialDragLocation(Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ elementGroupPrototype);
public static Microsoft.VisualStudio.Modeling.Diagrams.PointD GetInitialDragLocation (Microsoft.VisualStudio.Modeling.ElementGroupPrototype elementGroupPrototype);
static member GetInitialDragLocation : Microsoft.VisualStudio.Modeling.ElementGroupPrototype -> Microsoft.VisualStudio.Modeling.Diagrams.PointD
Public Shared Function GetInitialDragLocation (elementGroupPrototype As ElementGroupPrototype) As PointD

参数

elementGroupPrototype
ElementGroupPrototype

已将 DragSourceContext 保存到的 Elementgroupprototype 创建 elementgroup。

返回

PointD

拖动开始时,鼠标 (绝对世界坐标) 的位置。

适用于