Compartilhar via


AnchoringBehavior.SetRightAnchor Method (Double)

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

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

Syntax

'Declaração
Public Sub SetRightAnchor ( _
    percentage As Double _
)
public void SetRightAnchor(
    double percentage
)
public:
void SetRightAnchor(
    double percentage
)
member SetRightAnchor : 
        percentage:float -> unit 
public function SetRightAnchor(
    percentage : double
)

Parameters

  • percentage
    Type: System.Double
    The percentage of the parent ShapeElement'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 parent ShapeElement multiplied by percentage] relative to the left side of the parent ShapeElement.

.NET Framework Security

See Also

Reference

AnchoringBehavior Class

SetRightAnchor Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace