ALIGNMENT

Constants Summarized

Type
Name
Summary

Constant used for setting vertical alignment for components.

Constant used for setting horizontal and vertical alignment for components.

Constant used for setting horizontal and vertical alignment.

Constant used for setting horizontal alignment for components.

Constant used for setting horizontal alignment for components.

Constant used for setting vertical alignment for components.

Constants Detailed

BOTTOM

Constant used for setting vertical alignment for components. It makes the text inside the component be bottom aligned vertically.

Type Number

Sample

var bottomAlignedLabel = form.newLabel('BOTTOM', 520, 10, 50, 300);
bottomAlignedLabel.verticalAlignment = SM_ALIGNMENT.BOTTOM;

CENTER

Constant used for setting horizontal and vertical alignment for components. If used for horizontal alignment, then the text of the component will be horizontally centered. Similarly, if used for vertical alignment, then the text of the component will be vertically centered.

Type Number

Sample

DEFAULT

Constant used for setting horizontal and vertical alignment. DEFAULT value makes the alignment behave as if it was not changed before.

Type Number

Sample

LEFT

Constant used for setting horizontal alignment for components. It makes the text inside the component be left aligned horizontally.

Type Number

Sample

Constant used for setting horizontal alignment for components. It makes the text inside the component be right aligned vertically.

Type Number

Sample

TOP

Constant used for setting vertical alignment for components. It makes the text inside the component be top aligned vertically.

Type Number

Sample

Last updated

Was this helpful?