DropTargetContext Class

 

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

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

System::Object
  Microsoft.VisualStudio.Modeling.Diagrams::DropTargetContext

public ref class DropTargetContext sealed 

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticGetDropLocation(Transaction^)

Gets the drop location from the specified transaction.

System_CAPS_pubmethodSystem_CAPS_staticGetGhostShapes(Transaction^)

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

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticGetSourceId(Transaction^, Guid)

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

System_CAPS_pubmethodSystem_CAPS_staticGetTargetBoundingBox(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.

System_CAPS_pubmethodSystem_CAPS_staticGetTargetDiagramId(Transaction^)

Gets the diagram id of the drop target.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticHasDropTargetContext(Transaction^)

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

System_CAPS_pubmethodSystem_CAPS_staticRemove(Transaction^)

Removes the DragDropContext from the transaction's context info.

System_CAPS_pubmethodSystem_CAPS_staticSet(Transaction^, Guid, PointD, GhostShapeCollection^)

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

System_CAPS_pubmethodToString()

(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.

Return to top
Show: