Description
The following Page.ObjAlign... commands handle the alignment of the selected objects.
THIS COMMAND |
ALIGNS ALL SELECTED OBJECTS |
Page.ObjAlignHC |
Centred horizontally |
Page.ObjAlignHL |
Left |
Page.ObjAlignHR |
Right |
Page.ObjAlignVC |
Vertically centred |
Page.ObjAlignVT |
Top |
Page.ObjAlignVB |
Bottom |
THIS COMMAND |
DOES |
Page.ObjAlignMH |
Makes same width* |
Page.ObjAlignMV |
Makes same height* |
* Note: the function Page.ObjAlignMH and ObjAlignMV, when applied on dummy pictures and placeholders, change the dimensions proportionally, and not only one side, as you may expect.
THIS COMMAND |
DOES |
Page.ObjAlign |
Displays the alignment dialog box |
Remarks
The functions always return 0, therefore, you cannot use the error code to find out if it was successful or not.
Context
Page designer