DesignSurfaceElementOperations.AddGhostShapesContext Method
Adds a GhostShapeCollection to the ElementGroupPrototype in the specified IDataObject.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaração
Public Shared Sub AddGhostShapesContext ( _
data As IDataObject, _
diagram As Diagram, _
initialDragLocation As PointD _
)
public static void AddGhostShapesContext(
IDataObject data,
Diagram diagram,
PointD initialDragLocation
)
public:
static void AddGhostShapesContext(
IDataObject^ data,
Diagram^ diagram,
PointD initialDragLocation
)
static member AddGhostShapesContext :
data:IDataObject *
diagram:Diagram *
initialDragLocation:PointD -> unit
public static function AddGhostShapesContext(
data : IDataObject,
diagram : Diagram,
initialDragLocation : PointD
)
Parameters
- data
Type: System.Windows.Forms.IDataObject
The IDataObject that contains an ElementGroupPrototype to update.
- diagram
Type: Microsoft.VisualStudio.Modeling.Diagrams.Diagram
The source diagram.
- initialDragLocation
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD
The initial location of the mouse in absolute world coordinates.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.