DragSourceContext.GetInitialDragLocation 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 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。
返回
拖动开始时,鼠标 (绝对世界坐标) 的位置。
适用于
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。
返回
拖动开始时,鼠标 (绝对世界坐标) 的位置。