- Print
- PDF
Rearrange Properties (Whitespace on Edges)
Whitespace is handled for the left and right edges of the output rearrange. The Before and After columns refer to the left and right rearrange edges. This option retains whitespace introduced by automatic new lines and can be useful when applied in conjunction with background and border. When merging input rearranges to the same output line, you can use the trim setting to remove any extra spaces. You have three options for controlling whitespaces:
Trim (default) removes all edge whitespaces, shrinking the output rearrange box as much as possible.
Pad inserts one or more characters, usually periods or hyphens, starting from the rearrange contents to the edge.
Keep ensures that no whitespace is removed, making the output reflect the input in detail.
Exercise
Download and import the attached configuration called 07. Rearrange Properties (Whitespace on Edges) in Lasernet Developer 9. Afterward, navigate to the Forms section, and then open the Sample form.
Add a new Rearrange similar to the one illustrated in the following image:
Set the X position to 30 and Y to 40.
Set Text horizontal alignment to Left (default).
For Whitespace on edges, set After to Pad and specify a padding character as Period (default).
Note
The Pad setting allows inserting one or more characters, usually periods or hyphens, starting from the rearrange contents to the edge.
Copy the Rearrange and paste its two instances to have a similar case illustrated in the following image:
For the second Rearrange, located in the middle of the page, edit the properties by setting Text horizontal alignment to Center.
For Whitespace on edges, set Before to Pad and specify the Pad character as Period (default).
For the third Rearrange, taking a low position on the page, edit the Whitespace on edges setting by specifying the Pad character for After as Underscore.
Each Rearrange now includes periods and underscores starting from the Rearrange contents to the edge(s).
Note
By selecting the Keep radio button, you can ensure that no whitespace is removed and ensure that the output reflects the input in details. This is often used when working with TEXT as an input format.