29 Apr 20211 minute to read

## Text alignment

Text in the RadioButtonAdv can be aligned to the desired location as given below.

TextContentAlignment Indicates the alignment of the text. The default value is set to 'MiddleLeft'.The options included are as follows.

TopLeft,

TopCenter,

TopRight,

MiddleLeft,

MiddleCenter,

MiddleRight,

BottomLeft,

BottomCenter and

BottomRight.

WrapText property must be set to 'False'. Refer

Text Settings

.
``this.radioButtonAdv1.TextContentAlignment = System.Drawing.ContentAlignment.MiddleCenter;``
``Me.radioButtonAdv1.TextContentAlignment = System.Drawing.ContentAlignment.MiddleCenter``

The RadioButton itself can be aligned to any desired location that can be chosen from the options given in the following property.

CheckAlign Indicates the alignment of the RadioButton. The default value is set to 'MiddleLeft'.The options included are as follows.

TopLeft,

TopCenter,

TopRight,

MiddleLeft,

MiddleCenter,

MiddleRight,

BottomLeft,

BottomCenter and

BottomRight.

``this.radioButtonAdv1.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;``
``Me.radioButtonAdv1.CheckAlign = System.Drawing.ContentAlignment.MiddleRight``