DropTargetContext Class

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

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Modeling.Diagrams.DropTargetContext

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

Syntax

'Declaration
Public NotInheritable Class DropTargetContext
public sealed class DropTargetContext
public ref class DropTargetContext sealed
[<Sealed>]
type DropTargetContext =  class end
public final class DropTargetContext

The DropTargetContext type exposes the following members.

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodStatic member GetDropLocation Gets the drop location from the specified transaction.
Public methodStatic member GetGhostShapes Gets the ghost shapes which provide proposed properties (such as the proposed bounds) for the shapes.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodStatic member GetSourceId Gets the source ShapeElement Guid corresponding to the given target ShapeElement Guid.
Public methodStatic member GetTargetBoundingBox 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.
Public methodStatic member GetTargetDiagramId Gets the diagram id of the drop target.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic member HasDropTargetContext Gets a value indicating whether any drop target context is available from the specified transaction.
Public methodStatic member Remove Removes the DragDropContext from the transaction's context info.
Public methodStatic member Set Adds the drop target context information to the specified transaction for later use.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Modeling.Diagrams Namespace