GhostShape(Guid, RectangleD, Guid, Double) 构造函数

定义

初始化 GhostShape 类的新实例。

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)

参数

sourceId
Guid

虚影形状表示的 ShapeElement 的 Guid。 如果它不表示现有的形状实例,则可以为 Guid.empty。

sourceAbsoluteBoundingBox
RectangleD

相对于关系图的左上角,以世界单位表示的 ShapeElement 的原始边界框。

sourceParentId
Guid

父 ShapeElement 的 Guid。 如果没有现有的 ShapeElement 父对象,则可以为 Guid.empty。

sourceGridSize
Double

ShapeElement 的网格大小。 这可以为零,在这种情况下,没有网格。

适用于