Partilhar via


DropTargetContext Class

Definition

Provides methods to add and retrieve drop target context information to and from a particular transaction context.

public ref class DropTargetContext sealed
public sealed class DropTargetContext
type DropTargetContext = class
Public NotInheritable Class DropTargetContext
Inheritance
DropTargetContext

Methods

GetDropLocation(Transaction)

Gets the drop location from the specified transaction.

GetGhostShapes(Transaction)

Gets the ghost shapes which provide proposed properties (such as the proposed bounds) for the shapes.

GetSourceId(Transaction, Guid)

Gets the source ShapeElement Guid corresponding to the given target ShapeElement Guid.

GetTargetBoundingBox(Transaction, Guid)

Gets the desired bounding box of the target shape element in world units relative to the top-left of the diagram. The desired bounding box is determined via the GhostShapeCollection updated by GroupBoundsRules. This method returns RectangleD.Empty if it wasn't able to get the target bounding box.

GetTargetDiagramId(Transaction)

Gets the diagram id of the drop target.

HasDropTargetContext(Transaction)

Gets a value indicating whether any drop target context is available from the specified transaction.

Remove(Transaction)

Removes the DragDropContext from the transaction's context info.

Set(Transaction, Guid, PointD, GhostShapeCollection)

Adds the drop target context information to the specified transaction for later use.

Applies to