Shape Alignment
Previous  Top  Next


Multiple shapes can be easily aligned so they look well organised on your document. Before you proceed please first select a few shapes in your document. If you do not know how to do this you can read it here.

Accessing the alignment functions
Both toolbar and main menu have a list of alignment functions:

clip0012

When you have selected multiple shapes, simply click one of the alignment buttons and the shapes will be aligned. Example:
clip0062
Before shapes are aligned, the shapes are displaced in X. Now click Align Left and the left edges of the shapes will be aligned, to the value of the smallest one:
clip0063

Align Left
This aligns the left edges of a selection of shapes. All shapes will get a Left property that is equal to the smallest one of all.

Align Center
This aligns the shapes so that their horizontal centers are on one vertical line. The center is calculated as the middle of the leftmost edge of all shapes, and the rightmost edge of all shapes.

Align Right
This aligns the right edges of a selection of shapes. All shapes will be moved so that they line up with the rightmost edge of all shapes.

Align Top, Align Middle, Align Bottom
This is principally the same as above but now for vertical direction.

Programmer's note:
The TDtpDocument object additionally has methods for aligning multiple shapes to the page margins or centering them on the page. These functions are not implemented in the demo.