다음을 통해 공유


AnchoringBehavior.SetRightAnchor Method (NodeShape, Double)

Anchors the ShapeField's right side to the vertical line which is a distance of [sibling NodeShape's width multiplied by percentage] relative to the sibling NodeShape's left side.

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

Syntax

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

Parameters

  • percentage
    Type: System.Double

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

Remarks

Anchors the right side of the ShapeField to the vertical line that is a distance of [width of sibling NodeShape multiplied by percentage] relative to the left side of the sibling NodeShape.

.NET Framework Security

See Also

Reference

AnchoringBehavior Class

SetRightAnchor Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace