Alignment Settings in Windows Forms Radio Button (RadioButtonAdv)

29 Apr 20211 minute to read

This section discusses the alignment settings of the RadioButtonAdv.

Text alignment

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

RadioButtonAdv Properties Description
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

Windows forms RadioButtonAdv changed text alignment

RadioButton alignment

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

RadioButtonAdv Properties Description
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

Windows forms RadioButtonAdv changed check aligned