Lire en anglais

Partager via


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.

Inheritance Hierarchy

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)

Syntax

[SerializableAttribute]
public class DragSourceContext

The DragSourceContext 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.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member GetGhostShapes(ElementGroup) Gets the source ghost shape collection.
Public methodStatic member GetGhostShapes(ElementGroupPrototype) Gets the source ghost shape collection.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public methodStatic member GetInitialBoundingBox(ElementGroup) Returns the bounding box (in absolute world coordinates) encompassing all the shapes.
Public methodStatic member GetInitialBoundingBox(ElementGroupPrototype) Returns the bounding box (in absolute world coordinates) encompassing all the shapes.
Public methodStatic member GetInitialDragLocation(ElementGroup) Returns the location of the mouse (in absolute world coordinates) when drag began.
Public methodStatic member GetInitialDragLocation(ElementGroupPrototype) Returns the location of the mouse (in absolute world coordinates) when drag began.
Public methodStatic member GetInitialPrimaryShapeBounds(ElementGroup) Returns the bounds (in absolute world coordinates) of the primary shape in the ElementGroupPrototype.
Public methodStatic member GetInitialPrimaryShapeBounds(ElementGroupPrototype) Returns the bounds (in absolute world coordinates) of the primary shape in the ElementGroupPrototype.
Public methodStatic member GetInitialPrimaryShapeId(ElementGroup) Returns the Guid of the primary shape in the ElementGroupPototype.
Public methodStatic member GetInitialPrimaryShapeId(ElementGroupPrototype) Returns the Guid of the primary shape in the ElementGroupPototype.
Public methodStatic member GetProcessId(ElementGroup) Gets the source process id. This can return 0 if no process id was specified or no drag source context is available.
Public methodStatic member GetProcessId(ElementGroupPrototype) Gets the source process id. This can return 0 if no process id was specified or no drag source context is available.
Public methodStatic member 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.
Public methodStatic member 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.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic member Set Adds drag source information to the ElementGroupPrototype's source context.
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