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
ElementGroup, где был сохранен DragSourceContext.
Возвращаемое значение
Положение указателя мыши (в абсолютных координатах мира) после начала перетаскивания.
Применяется к
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
ElementGroupPrototype, где был сохранен DragSourceContext.
Возвращаемое значение
Положение указателя мыши (в абсолютных координатах мира) после начала перетаскивания.