Share via


AnchoringBehavior.SetTopAnchor Method (NodeShape, Double)

Anchors the ShapeField's top side to the horizontal line which is a distance of [sibling NodeShape's height multiplied by percentage] relative to the sibling NodeShape's top side.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)

Syntax

'Declaration
Public Sub SetTopAnchor ( _
    sibling As NodeShape, _
    percentage As Double _
)
public void SetTopAnchor(
    NodeShape sibling,
    double percentage
)
public:
void SetTopAnchor(
    NodeShape^ sibling, 
    double percentage
)
member SetTopAnchor : 
        sibling:NodeShape * 
        percentage:float -> unit
public function SetTopAnchor(
    sibling : NodeShape, 
    percentage : double
)

Parameters

  • percentage
    Type: Double

    The percentage of the sibling NodeShape's height that will define the horizontal line to anchor to. (1.0 is 100%)

Remarks

Anchors the top side of the ShapeField to the horizontal line that is a distance of [height of sibling NodeShape multiplied by percentage] relative to the top side of the sibling NodeShape.

.NET Framework Security

See Also

Reference

AnchoringBehavior Class

SetTopAnchor Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace