version 6.0
DR ALIGN (area; scope; horizontal; vertical)
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| scope | Longint | -1=All | |
| 0=Selected | |||
| horizontal | Integer | 0=None | |
| 1=Left | |||
| 2=Middle | |||
| 3=Right | |||
| vertical | Integer | 0=None | |
| 1=Top | |||
| 2=Middle | |||
| 3=Bottom |
Description
The command DR ALIGN aligns the objects in area described by scope.
If scope equals -1, DR ALIGN aligns all objects in the document.
If scope equals 0, DR ALIGN aligns the selected objects.
The objects described by scope are aligned according to the horizontal and vertical parameters.
Following are the values for the horizontal parameter, a description of their effects, and the corresponding icons in the Align Objects dialog box:
0 No horizontal alignment
1 Left sides
2 Centers
3 Right sides
If horizontal equals 0, DR ALIGN does no horizontal alignment.
If horizontal equals 1, the command aligns the left sides.
If horizontal equals 2, the command aligns the horizontal centers.
If horizontal equals 3, the command aligns the right sides.
Following are the values for the vertical parameter, a description of their effects, and the corresponding icons in the Align Objects dialog box:
0 No vertical alignment
1 Tops
2 Centers
3 Bottoms
If vertical equals 0, DR ALIGN does no vertical alignment.
If vertical equals 1, the command aligns the tops.
If vertical equals 2, the command aligns the vertical centers.
If vertical equals 3, the command aligns the bottoms.
Example
The following example centers the selected objects both horizontally and vertically.
DR ALIGN (Area;0;2;2)
See Also