Delen via


GhostShape Constructor

Initializes a new instance of the GhostShape class.

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 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: System.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.

  • sourceParentId
    Type: System.Guid

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

  • sourceGridSize
    Type: System.Double

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

.NET Framework Security

See Also

Reference

GhostShape Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace