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 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.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Modeling.Diagrams.DragSourceContext
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'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.
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.) |
![]() ![]() |
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 a hash function for a particular type. (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
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.