[]
        
(Showing Draft Content)

GrapeCity.Documents.Layout.LayoutRect.AnchorRightTopBottom

AnchorRightTopBottom Method

AnchorRightTopBottom(LayoutRect, float, float, float)

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

The left side is not fixed and requires an additional constraint.

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

The referenced LayoutRect or null to reference the owner LayoutView.

float paddingRight

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

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.

AnchorRightTopBottom(LayoutRect, float, float, float, float)

Anchors a LayoutRect to the right, top, bottom sides and rotation angle of anchorRect and sets the width.

Declaration
public void AnchorRightTopBottom(LayoutRect anchorRect, float paddingRight, float paddingTop, float paddingBottom, float width)
Public Sub AnchorRightTopBottom(anchorRect As LayoutRect, paddingRight As Single, 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 paddingRight

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

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.