Document Solutions for PDF
DS.Documents.Imaging Assembly / GrapeCity.Documents.Layout Namespace / LayoutRect Class / AnchorTopBottom Method / AnchorTopBottom(LayoutRect,Single,Single,Single) Method
The referenced LayoutRect or a null reference (Nothing in Visual Basic) to reference the owner LayoutView.
The inner padding relative to the top side of the anchorRect.
The inner padding relative to the bottom side of the anchorRect.
The proposed width.

In This Topic
    AnchorTopBottom(LayoutRect,Single,Single,Single) Method
    In This Topic
    Anchors a LayoutRect to the top and bottom sides and rotation angle of anchorRect and sets the width.

    The horizontal position is not fixed and requires an additional constraint.

    Syntax
    'Declaration
     
    Public Overloads Sub AnchorTopBottom( _
       ByVal anchorRect As LayoutRect, _
       ByVal paddingTop As System.Single, _
       ByVal paddingBottom As System.Single, _
       ByVal width As System.Single _
    ) 
    public void AnchorTopBottom( 
       LayoutRect anchorRect,
       System.float paddingTop,
       System.float paddingBottom,
       System.float width
    )

    Parameters

    anchorRect
    The referenced LayoutRect or a null reference (Nothing in Visual Basic) to reference the owner LayoutView.
    paddingTop
    The inner padding relative to the top side of the anchorRect.
    paddingBottom
    The inner padding relative to the bottom side of the anchorRect.
    width
    The proposed width.
    See Also