Alignment Property

The Alignment property determines whether the text in controls is centered, left-justified, or right-justified.

You can also set this property using a cascading style sheet. For more information, see Using Cascading Style Sheets.

Applies to: Edit boxes, group boxes, multi-edit boxes, text.

Setting dynamically:

Winform Set form.control.ALIGNMENT TO n;

Property Settings:

0 - Left

Aligns text to the left in the selected control (default for edit box, group box, and multi-edit box).

1 - Center

Centers text in the selected control (default for text control).

2 - Right

Aligns text to the right in the selected control.

3 - AlignByType

(Edit box only) Left-justifies character input, and right-justifies numeric input.