AnchoringBehavior.SetLeftAnchor 方法 (Double)

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

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

语法

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

参数

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

备注

锚定 ShapeField 的左侧内容是距离的垂直线 [将百分比的父 ShapeElement 的宽度] 相对于父 ShapeElement 的左侧。

.NET Framework 安全性

请参阅

参考

AnchoringBehavior 类

SetLeftAnchor 重载

Microsoft.VisualStudio.Modeling.Diagrams 命名空间