ShapeDecorator 建構函式 (ShapeField, ShapeDecoratorPosition, PointD, Boolean)
建構新的 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
Decorator 使用的 ShapeField。
- position
類型:Microsoft.VisualStudio.Modeling.Diagrams.ShapeDecoratorPosition
Decorator 位置。
- offset
類型:Microsoft.VisualStudio.Modeling.Diagrams.PointD
位移,此位移用來修改位置指定的 Decorator 的預設位置。
- canMove
類型:System.Boolean
是否可以移動這個裝飾項。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。