共用方式為


AnchoringBehavior.CenterVertically 方法 (ShapeField, AnchoringBehavior.Edge, AnchoringBehavior.Edge, Double)

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

語法

'宣告
Public Sub CenterVertically ( _
    topSibling As ShapeField, _
    topSiblingSide As AnchoringBehavior.Edge, _
    bottomSide As AnchoringBehavior.Edge, _
    percentage As Double _
)
public void CenterVertically(
    ShapeField topSibling,
    AnchoringBehavior.Edge topSiblingSide,
    AnchoringBehavior.Edge bottomSide,
    double percentage
)

參數

.NET Framework 安全性

請參閱

參考

AnchoringBehavior 類別

CenterVertically 多載

Microsoft.VisualStudio.Modeling.Diagrams 命名空間