AnchoringBehavior.SetRightAnchor 方法 (ShapeField, Double)

錨定 ShapeField 的右邊,以垂直線也就是相對於同層級 ShapeField 的左邊的距離為 [ShapeField 同層級寬度乘以 [百分比]。

命名空間:  Microsoft.VisualStudio.Modeling.Diagrams
組件:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.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 命名空間