GhostShape Constructor
Initializes a new instance of the GhostShape class.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
Syntax
'Declaration
Public Sub New ( _
sourceId As Guid, _
sourceAbsoluteBoundingBox As RectangleD, _
sourceParentId As Guid, _
sourceGridSize As Double _
)
public GhostShape(
Guid sourceId,
RectangleD sourceAbsoluteBoundingBox,
Guid sourceParentId,
double sourceGridSize
)
public:
GhostShape(
Guid sourceId,
RectangleD sourceAbsoluteBoundingBox,
Guid sourceParentId,
double sourceGridSize
)
new :
sourceId:Guid *
sourceAbsoluteBoundingBox:RectangleD *
sourceParentId:Guid *
sourceGridSize:float -> GhostShape
public function GhostShape(
sourceId : Guid,
sourceAbsoluteBoundingBox : RectangleD,
sourceParentId : Guid,
sourceGridSize : double
)
Parameters
sourceId
Type: GuidThe Guid of the ShapeElement that the ghost shape represents. This can be Guid.Empty if it does not represent an existing shape instance.
sourceAbsoluteBoundingBox
Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleDThe original bounding box of the ShapeElement in world units relative to the top-left of the diagram.
sourceParentId
Type: GuidThe Guid of the parent ShapeElement. This can be Guid.Empty if there is no existing ShapeElement parent.
sourceGridSize
Type: DoubleThe grid size that the ShapeElement is on. This can be zero, in which case there is no grid.
.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.