[]
        
(Showing Draft Content)

GrapeCity.Documents.Layout.LayoutRect.AnchorTopBottom

AnchorTopBottom Method

AnchorTopBottom(LayoutRect, float, float)

Anchors a LayoutRect to the top and bottom sides and rotation angle of anchorRect.

The left and right sides are not fixed and require additional constraints.

Declaration
public void AnchorTopBottom(LayoutRect anchorRect, float paddingTop, float paddingBottom)
Public Sub AnchorTopBottom(anchorRect As LayoutRect, paddingTop As Single, paddingBottom As Single)
Parameters
Type Name Description
LayoutRect anchorRect

The referenced LayoutRect or null to reference the owner LayoutView.

float paddingTop

The inner padding relative to the top side of the anchorRect.

float paddingBottom

The inner padding relative to the bottom side of the anchorRect.

AnchorTopBottom(LayoutRect, float, float, float)

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.

Declaration
public void AnchorTopBottom(LayoutRect anchorRect, float paddingTop, float paddingBottom, float width)
Public Sub AnchorTopBottom(anchorRect As LayoutRect, paddingTop As Single, paddingBottom As Single, width As Single)
Parameters
Type Name Description
LayoutRect anchorRect

The referenced LayoutRect or null to reference the owner LayoutView.

float paddingTop

The inner padding relative to the top side of the anchorRect.

float paddingBottom

The inner padding relative to the bottom side of the anchorRect.

float width

The proposed width.