Align

The Align method aligns the objects in the selection.

Syntax

object.Align( HorzAlign, VertAlign )

Parameter

Type

Default

Description

HorzAlign

SrfHAlign

srfHANone

optional; This parameter specifies the horizontal alignment: left, center or right.

VertAlign

SrfVAlign

srfVANone

optional; This parameter specifies the vertical alignment: top, middle or bottom.

Example

This example demonstrates how to align an entire selection of objects to the left.

Selection.Align(HorzAlign:=srfHALeft, VertAlign:=srfVANone)

Used by: Selection collection