GhostShape 构造函数

初始化 GhostShape 类的新实例。

命名空间:  Microsoft.VisualStudio.Modeling.Diagrams
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)

语法

声明
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
)

参数

  • sourceId
    类型:System.Guid
    重影形状表示 ShapeElement 的 GUID。,如果不表示现有形状实例,这可能是 Guid.Empty。
  • sourceParentId
    类型:System.Guid
    父 ShapeElement 的 GUID。; 如果没有任何现有 ShapeElement 父,这可能是 Guid.Empty。
  • sourceGridSize
    类型:System.Double
    网格大小 ShapeElement 打开。,在没有网格情况下,这可能是零。

.NET Framework 安全性

请参见

参考

GhostShape 类

Microsoft.VisualStudio.Modeling.Diagrams 命名空间