Sdílet prostřednictvím


DesignSurfaceElementOperations.AddGhostShapesContext Method

Definition

Adds a GhostShapeCollection to the ElementGroupPrototype in the specified IDataObject.

public:
 static void AddGhostShapesContext(System::Windows::Forms::IDataObject ^ data, Microsoft::VisualStudio::Modeling::Diagrams::Diagram ^ diagram, Microsoft::VisualStudio::Modeling::Diagrams::PointD initialDragLocation);
public static void AddGhostShapesContext (System.Windows.Forms.IDataObject data, Microsoft.VisualStudio.Modeling.Diagrams.Diagram diagram, Microsoft.VisualStudio.Modeling.Diagrams.PointD initialDragLocation);
static member AddGhostShapesContext : System.Windows.Forms.IDataObject * Microsoft.VisualStudio.Modeling.Diagrams.Diagram * Microsoft.VisualStudio.Modeling.Diagrams.PointD -> unit
Public Shared Sub AddGhostShapesContext (data As IDataObject, diagram As Diagram, initialDragLocation As PointD)

Parameters

data
IDataObject

The IDataObject that contains an ElementGroupPrototype to update.

diagram
Diagram

The source diagram.

initialDragLocation
PointD

The initial location of the mouse in absolute world coordinates.

Applies to