[]
        
(Showing Draft Content)

GrapeCity.Documents.Layout.LayoutRect.AnchorLeftRight

AnchorLeftRight Method

AnchorLeftRight(LayoutRect, float, float)

Anchors a LayoutRect to the left and right sides and rotation angle of anchorRect.

The top and bottom sides are not fixed and require additional constraints.

Declaration
public void AnchorLeftRight(LayoutRect anchorRect, float paddingLeft, float paddingRight)
Public Sub AnchorLeftRight(anchorRect As LayoutRect, paddingLeft As Single, paddingRight As Single)
Parameters
Type Name Description
LayoutRect anchorRect

The referenced LayoutRect or null to reference the owner LayoutView.

float paddingLeft

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

float paddingRight

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

AnchorLeftRight(LayoutRect, float, float, float)

Anchors a LayoutRect to the left and right sides and rotation angle of anchorRect and sets the height.

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

Declaration
public void AnchorLeftRight(LayoutRect anchorRect, float paddingLeft, float paddingRight, float height)
Public Sub AnchorLeftRight(anchorRect As LayoutRect, paddingLeft As Single, paddingRight As Single, height As Single)
Parameters
Type Name Description
LayoutRect anchorRect

The referenced LayoutRect or null to reference the owner LayoutView.

float paddingLeft

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

float paddingRight

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

float height

The proposed height.