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。
- sourceAbsoluteBoundingBox
类型:Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
ShapeElement 的原始边界框位于世界单元的相对左上角的关系图。
- sourceParentId
类型:System.Guid
父 ShapeElement 的 GUID。; 如果没有任何现有 ShapeElement 父,这可能是 Guid.Empty。
- sourceGridSize
类型:System.Double
网格大小 ShapeElement 打开。,在没有网格情况下,这可能是零。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。