AnchoringBehavior.SetLeftAnchor 方法 (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 SetLeftAnchor ( _
    sibling As ShapeField, _
    percentage As Double _
)
public void SetLeftAnchor(
    ShapeField sibling,
    double percentage
)

參數

  • percentage
    型別:System.Double
    將定義錨定至垂直線條的同層級 ShapeField 的寬度的百分比。(1.0 屬 100%)

備註

錨定左下的方垂直線是相對於左邊同層級 ShapeField 的距離為同層級 ShapeField 乘以百分比寬度為 ShapeField。

.NET Framework 安全性

請參閱

參考

AnchoringBehavior 類別

SetLeftAnchor 多載

Microsoft.VisualStudio.Modeling.Diagrams 命名空間