Share via


GhostShape(Guid, RectangleD, Guid, Double) Constructor

Definition

Initializes a new instance of the GhostShape class.

public:
 GhostShape(Guid sourceId, Microsoft::VisualStudio::Modeling::Diagrams::RectangleD sourceAbsoluteBoundingBox, Guid sourceParentId, double sourceGridSize);
public GhostShape (Guid sourceId, Microsoft.VisualStudio.Modeling.Diagrams.RectangleD sourceAbsoluteBoundingBox, Guid sourceParentId, double sourceGridSize);
new Microsoft.VisualStudio.Modeling.Diagrams.GhostShape : Guid * Microsoft.VisualStudio.Modeling.Diagrams.RectangleD * Guid * double -> Microsoft.VisualStudio.Modeling.Diagrams.GhostShape
Public Sub New (sourceId As Guid, sourceAbsoluteBoundingBox As RectangleD, sourceParentId As Guid, sourceGridSize As Double)

Parameters

sourceId
Guid

The Guid of the ShapeElement that the ghost shape represents. This can be Guid.Empty if it does not represent an existing shape instance.

sourceAbsoluteBoundingBox
RectangleD

The original bounding box of the ShapeElement in world units relative to the top-left of the diagram.

sourceParentId
Guid

The Guid of the parent ShapeElement. This can be Guid.Empty if there is no existing ShapeElement parent.

sourceGridSize
Double

The grid size that the ShapeElement is on. This can be zero, in which case there is no grid.

Applies to