Rearrange Properties (Box Alignment)
    • 18 Jul 2024
    • 1 Minute to read
    • Contributors
    • PDF

    Rearrange Properties (Box Alignment)

    • PDF

    Article summary

    Let us now consider how to align a text box relative to the X/Y position of a Rearrange object by using the Box vertical and Box horizontal alignment settings.

    Box horizontal alignment

    The horizontal alignment of a text box on the output page is relative to the X position. You can choose among Left, Center, and Right.

    Box vertical alignment

    The vertical alignment of a text box on the output page is relative to the Y position. You can choose among Top, Middle, and Bottom.

    Exercise

    Download and import the attached configuration called 05. Rearrange Properties (Box Alignment) in Lasernet Developer 9. Afterward, navigate to the Forms section and then open the Sample form.

    1. Add a new Rearrange that is similar to the one you can see in the following image:

    Specify the following settings for the Rearrange you have just added:

    1. Set Size type to Auto Y.

    2. Set the X position to 30, Y to 40, and Width to 55.

    3. For Box horizontal alignment, ensure the Left radio button is selected. It is selected by default.

    4. For Box vertical alignment, ensure the Top radio button is selected. It is selected by default.

    5. For Overflow, select the Force line break radio button.

    1. Ensure that now you have a text available in the left-top aligned box. The Y position is a baseline for the first text line in the text box.

    1. Copy and paste the Rearrange. For a Rearrange copy, specify the following position settings: X to 150 and Y to 40.

    1. Edit the Rearrange properties and set Box horizontal alignment to Right.

    1. Select Rearranges. To this end, use the Select tool. Ensure it is selected on the Developer toolbar. Afterward, hold down CTRL and click each Rearrange. Right-click a selection, and then click Copy. Move a cursor to the following position: X = 30 mm and Y = 130 mm. Right-click a selection, and then click Paste.

    Note

    In the select mode, you can also draw a rectangle around the different objects you want to select, so you can select them all at the same time.

    1. Select the Rearrange located in the bottom left-hand corner and set Box vertical alignment to Bottom.

    1. Select the Rearrange located in the bottom right-hand corner and set Box vertical alignment to Middle.

    Four text blocks are now aligned around the horizontal and vertical axis, as illustrated in the following picture:

    05
    76.35 KB


    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.