Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Provides methods to add and retrieve drop target context information to and from a particular transaction context.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Modeling.Diagrams.DropTargetContext
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.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 | |
---|---|---|
![]() |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() |
GetDropLocation | Gets the drop location from the specified transaction. |
![]() ![]() |
GetGhostShapes | Gets the ghost shapes which provide proposed properties (such as the proposed bounds) for the shapes. |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() |
GetSourceId | Gets the source ShapeElement Guid corresponding to the given target ShapeElement Guid. |
![]() ![]() |
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. |
![]() ![]() |
GetTargetDiagramId | Gets the diagram id of the drop target. |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() |
HasDropTargetContext | Gets a value indicating whether any drop target context is available from the specified transaction. |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() |
Remove | Removes the DragDropContext from the transaction's context info. |
![]() ![]() |
Set | Adds the drop target context information to the specified transaction for later use. |
![]() |
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.