共用方式為


AnchoringBehavior.SetTopAnchor 方法 (NodeShape, Double)

將 ShapeField 的頂邊錨定至水平線,也就是相對於同層級 NodeShape 頂邊,距離為 [同層級 NodeShape 高度乘以百分比] 的位置。

命名空間:  Microsoft.VisualStudio.Modeling.Diagrams
組件:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)

語法

'宣告
Public Sub SetTopAnchor ( _
    sibling As NodeShape, _
    percentage As Double _
)
public void SetTopAnchor(
    NodeShape sibling,
    double percentage
)

參數

  • percentage
    類型:System.Double
    會定義要錨定的水平線的同層級 NodeShape 高度的百分比。(1.0 為 100%)

備註

將 ShapeField 的頂邊錨定至是距離的水平線 [百分比同層級 NodeShape 高度乘以的] 相對於同層級 NodeShape 的頂端。

.NET Framework 安全性

請參閱

參考

AnchoringBehavior 類別

SetTopAnchor 多載

Microsoft.VisualStudio.Modeling.Diagrams 命名空間