AnchoringBehavior.SetRightAnchor 方法 (ShapeField, Double)

锚定 ShapeField 的右侧到垂直线,相对于同级 ShapeField 的左侧的距离[百分比与同级 ShapeField 的宽度相乘]。

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

语法

声明
Public Sub SetRightAnchor ( _
    sibling As ShapeField, _
    percentage As Double _
)
public void SetRightAnchor(
    ShapeField sibling,
    double percentage
)

参数

  • percentage
    类型:System.Double
    将定义垂直线要定位到的同级 ShapeField 的宽度的百分比。(1.0 为 100%。)

备注

锚定 Shapefield 的右侧。是距离的垂直线 [百分比是的同级 ShapeField 的宽度。] 同级 ShapeField 的左侧。

.NET Framework 安全性

请参阅

参考

AnchoringBehavior 类

SetRightAnchor 重载

Microsoft.VisualStudio.Modeling.Diagrams 命名空间