DropTargetContext Class
Provides methods to add and retrieve drop target context information to and from a particular transaction context.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Object.) |
![]() ![]() | 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. |
![]() | GetHashCode() | (Inherited from Object.) |
![]() ![]() | 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. |
![]() | GetType() | (Inherited from Object.) |
![]() ![]() | 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. |
![]() | ToString() | (Inherited from Object.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

