[]
        
(Showing Draft Content)

GrapeCity.Documents.Layout.LayoutRect.AnchorTopLeft

AnchorTopLeft Method

AnchorTopLeft(LayoutRect, float, float)

Anchors a LayoutRect to the top left corner and rotation angle of anchorRect.

The bottom right corner is not fixed and requires additional constraints.

Declaration
public void AnchorTopLeft(LayoutRect anchorRect, float paddingTop, float paddingLeft)
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 paddingLeft

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

AnchorTopLeft(LayoutRect, float, float, float, float)

Anchors a LayoutRect to the top left corner and rotation angle of anchorRect and sets width/height.

Declaration
public void AnchorTopLeft(LayoutRect anchorRect, float paddingTop, float paddingLeft, float width, float height)
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 paddingLeft

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

float width

The proposed width.

float height

The proposed height.