DragSourceContext Class
Provides drag source information which is initially set when the ElementGroupPrototype is created at the source. It is used for drag feedback and the merge (i.e., drop/paste) process.
System.Object
Microsoft.VisualStudio.Modeling.Diagrams.DragSourceContext
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
'Declaration
<SerializableAttribute> _
Public Class DragSourceContext
[SerializableAttribute]
public class DragSourceContext
[SerializableAttribute]
public ref class DragSourceContext
[<SerializableAttribute>]
type DragSourceContext = class end
public class DragSourceContext
The DragSourceContext type exposes the following members.
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.) | |
GetDiagramId(ElementGroup) | Gets the source diagram id. This can return Guid.Empty if no diagram id was specified or no drag source context is available. | |
GetDiagramId(ElementGroupPrototype) | Gets the source diagram id. This can return Guid.Empty if no diagram id was specified or no drag source context is available. | |
GetGhostShapes(ElementGroup) | Gets the source ghost shape collection. | |
GetGhostShapes(ElementGroupPrototype) | Gets the source ghost shape collection. | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetInitialBoundingBox(ElementGroup) | Returns the bounding box (in absolute world coordinates) encompassing all the shapes. | |
GetInitialBoundingBox(ElementGroupPrototype) | Returns the bounding box (in absolute world coordinates) encompassing all the shapes. | |
GetInitialDragLocation(ElementGroup) | Returns the location of the mouse (in absolute world coordinates) when drag began. | |
GetInitialDragLocation(ElementGroupPrototype) | Returns the location of the mouse (in absolute world coordinates) when drag began. | |
GetInitialPrimaryShapeBounds(ElementGroup) | Returns the bounds (in absolute world coordinates) of the primary shape in the ElementGroupPrototype. | |
GetInitialPrimaryShapeBounds(ElementGroupPrototype) | Returns the bounds (in absolute world coordinates) of the primary shape in the ElementGroupPrototype. | |
GetInitialPrimaryShapeId(ElementGroup) | Returns the Guid of the primary shape in the ElementGroupPototype. | |
GetInitialPrimaryShapeId(ElementGroupPrototype) | Returns the Guid of the primary shape in the ElementGroupPototype. | |
GetProcessId(ElementGroup) | Gets the source process id. This can return 0 if no process id was specified or no drag source context is available. | |
GetProcessId(ElementGroupPrototype) | Gets the source process id. This can return 0 if no process id was specified or no drag source context is available. | |
GetStoreId(ElementGroup) | Gets the source store id. This can return Guid.Empty if no store id was specified or no drag source context is available. | |
GetStoreId(ElementGroupPrototype) | Gets the source store id. This can return Guid.Empty if no store id was specified or no drag source context is available. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Set | Adds drag source information to the ElementGroupPrototype's source context. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.