DesignSurfaceElementOperations.AddGhostShapesContext Method
Adds a GhostShapeCollection to the ElementGroupPrototype in the specified IDataObject.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
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.IDataObjectThe IDataObject that contains an ElementGroupPrototype to update.
diagram
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramThe source diagram.
initialDragLocation
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointDThe 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.