AnchoringBehavior.SetLeftAnchor 方法 (NodeShape, Double)

锚定 ShapeField 的左侧到同级 NodeShape 的指定距离。

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

语法

声明
Public Sub SetLeftAnchor ( _
    sibling As NodeShape, _
    percentage As Double _
)
public void SetLeftAnchor(
    NodeShape sibling,
    double percentage
)

参数

  • percentage
    类型:System.Double
    ShapeField 与同级之间的间距用同级的宽度的一部分来表示。1.0 == 100%

.NET Framework 安全性

请参阅

参考

AnchoringBehavior 类

SetLeftAnchor 重载

Microsoft.VisualStudio.Modeling.Diagrams 命名空间