Compartilhar via


AnchoringBehavior.SetTopAnchor Method (ShapeField, AnchoringBehavior.Edge, Double)

Anchors the ShapeField's top side to a particular side of a sibling ShapeField.

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 SetTopAnchor ( _
    sibling As ShapeField, _
    side As AnchoringBehavior..::..Edge, _
    margin As Double _
)
public void SetTopAnchor(
    ShapeField sibling,
    AnchoringBehavior..::..Edge side,
    double margin
)
public:
void SetTopAnchor(
    ShapeField^ sibling, 
    AnchoringBehavior..::..Edge side, 
    double margin
)
member SetTopAnchor : 
        sibling:ShapeField * 
        side:AnchoringBehavior..::..Edge * 
        margin:float -> unit 
public function SetTopAnchor(
    sibling : ShapeField, 
    side : AnchoringBehavior..::..Edge, 
    margin : double
)

Parameters

  • margin
    Type: System.Double
    The margin (in world units) between the ShapeField's top side and the specified side of the sibling ShapeField.

Remarks

Anchors the top side of the ShapeField to a particular side of a sibling ShapeField.

.NET Framework Security

See Also

Reference

AnchoringBehavior Class

SetTopAnchor Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace