Background Settings in Windows Forms Radio Button (RadioButtonAdv)

29 Apr 20211 minute to read

The background settings of the RadioButtonAdv are discussed below.

The RadioButtonAdv can be provided with a gradient background using the properties given below.

RadioButtonAdv Properties Description
BackgroundStyle Sets the background style of the RadioButtonAdv.The options included are as follows.

HorizontalGradient,

VerticalGradient and

Default.

GradientStart Sets the start color of the gradient of the background of the RadioButtonAdv.
GradientEnd Sets the end color of the gradient of the background of the RadioButtonAdv.
this.radioButtonAdv1.BackgroundStyle = Syncfusion.Windows.Forms.Tools.CheckBoxAdvBackStyle.HorizontalGradient;
this.radioButtonAdv1.GradientStart = System.Drawing.Color.LightCoral;
this.radioButtonAdv1.GradientEnd = System.Drawing.Color.DarkSlateBlue;
Me.radioButtonAdv1.BackgroundStyle = Syncfusion.Windows.Forms.Tools.CheckBoxAdvBackStyle.HorizontalGradient
Me.radioButtonAdv1.GradientStart = System.Drawing.Color.LightCoral
Me.radioButtonAdv1.GradientEnd = System.Drawing.Color.DarkSlateBlue

Windows forms RadioButtonAdv gradient style applied in background

NOTE

Gradient background cannot be applied to the RadioButtonAdv when its BackgroundStyle property is set to ‘Default’. Also, the background image cannot be displayed with gradient settings.