Udostępnij za pośrednictwem


DragSourceContext Class

Definition

Provides drag source information which is initially set when the ElementGroupPrototype is created at the source. It is used for drag feedback and the merge (i.e., drop/paste) process.

public ref class DragSourceContext
[System.Serializable]
public class DragSourceContext
[<System.Serializable>]
type DragSourceContext = class
Public Class DragSourceContext
Inheritance
DragSourceContext
Attributes

Methods

GetDiagramId(ElementGroup)

Gets the source diagram id. This can return Guid.Empty if no diagram id was specified or no drag source context is available.

GetDiagramId(ElementGroupPrototype)

Gets the source diagram id. This can return Guid.Empty if no diagram id was specified or no drag source context is available.

GetGhostShapes(ElementGroup)

Gets the source ghost shape collection.

GetGhostShapes(ElementGroupPrototype)

Gets the source ghost shape collection.

GetInitialBoundingBox(ElementGroup)

Returns the bounding box (in absolute world coordinates) encompassing all the shapes.

GetInitialBoundingBox(ElementGroupPrototype)

Returns the bounding box (in absolute world coordinates) encompassing all the shapes.

GetInitialDragLocation(ElementGroup)

Returns the location of the mouse (in absolute world coordinates) when drag began.

GetInitialDragLocation(ElementGroupPrototype)

Returns the location of the mouse (in absolute world coordinates) when drag began.

GetInitialPrimaryShapeBounds(ElementGroup)

Returns the bounds (in absolute world coordinates) of the primary shape in the ElementGroupPrototype.

GetInitialPrimaryShapeBounds(ElementGroupPrototype)

Returns the bounds (in absolute world coordinates) of the primary shape in the ElementGroupPrototype.

GetInitialPrimaryShapeId(ElementGroup)

Returns the Guid of the primary shape in the ElementGroupPototype.

GetInitialPrimaryShapeId(ElementGroupPrototype)

Returns the Guid of the primary shape in the ElementGroupPototype.

GetProcessId(ElementGroup)

Gets the source process id. This can return 0 if no process id was specified or no drag source context is available.

GetProcessId(ElementGroupPrototype)

Gets the source process id. This can return 0 if no process id was specified or no drag source context is available.

GetStoreId(ElementGroup)

Gets the source store id. This can return Guid.Empty if no store id was specified or no drag source context is available.

GetStoreId(ElementGroupPrototype)

Gets the source store id. This can return Guid.Empty if no store id was specified or no drag source context is available.

Set(ElementGroupPrototype, PointD, GhostShapeCollection)

Adds drag source information to the ElementGroupPrototype's source context.

Applies to