构造一个新的 ShapeDecorator。
命名空间: Microsoft.VisualStudio.Modeling.Diagrams
程序集: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)
语法
声明
Public Sub New ( _
field As ShapeField, _
position As ShapeDecoratorPosition, _
offset As PointD, _
canMove As Boolean _
)
public ShapeDecorator(
ShapeField field,
ShapeDecoratorPosition position,
PointD offset,
bool canMove
)
参数
- field
类型:Microsoft.VisualStudio.Modeling.Diagrams.ShapeField
修饰器使用的 ShapeField。
- position
类型:Microsoft.VisualStudio.Modeling.Diagrams.ShapeDecoratorPosition
修饰器位置。
- offset
类型:Microsoft.VisualStudio.Modeling.Diagrams.PointD
用于修改由位置指定的修饰器的默认位置的偏移量。
- canMove
类型:System.Boolean
此修饰器是否可移动。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。