| layout | post |
|---|---|
| title | Themes and Visual Styles in Windows Forms CheckBox | Syncfusion® |
| description | Learn about Themes and Visual Styles support in Syncfusion® Windows Forms CheckBox (CheckBoxAdv) control and more details. |
| platform | windowsforms |
| control | EditorsPackage |
| documentation | ug |
This section discusses the themes and visual style settings supported by the CheckBoxAdv control.
Themes can be applied to CheckBoxAdv control by enabling the ThemesEnabled property.
| CheckBoxAdv Property | Description |
|---|---|
| ThemesEnabled | Specifies whether themes are enabled for CheckBoxAdv. |
{% tabs %} {% highlight c# %}
this.checkBoxAdv1.ThemesEnabled = true;
{% endhighlight %}
{% highlight vb %}
Me.checkBoxAdv1.ThemesEnabled = True
{% endhighlight %} {% endtabs %}
The appearance of the CheckBoxAdv control can be customized using the Style, Office2007ColorScheme and Office2010ColorScheme properties.
| CheckBoxAdv Properties | Description |
|---|---|
| Style | Gets or sets an advanced appearance for the CheckBoxAdv.The options included are as follows, Default, Office2007, Metro, Office2016Colorful, Office2016White, Office2016Black, Office2016DarkGray |
| Office2007ColorScheme | Gets or sets Office 2007 color scheme.The options included are as follows, Managed, Blue, Silver and Black. The Style property should be set to "Office2007". |
| Office2010ColorScheme | Gets or sets Office 2010 color scheme.The options included are as follows, Managed, Blue, Silver and Black. The Style property should be set to "Office2010". |
{% tabs %} {% highlight c# %}
this.checkBoxAdv1.Style = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Office2016Colorful;
{% endhighlight %}
{% highlight vb %}
Me.checkBoxAdv1.Style = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Office2016Colorful
{% endhighlight %} {% endtabs %}
When the Office2007ColorScheme property is set to 'Managed', the CheckBox in the CheckBoxAdv can be displayed using custom colors supported by the control.
{% tabs %} {% highlight c# %}
checkBoxAdv1.Style = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Office2007; checkBoxAdv1.Office2007ColorScheme = Syncfusion.Windows.Forms.Office2007Theme.Managed; Office2007Colors.ApplyManagedColors(this, Color.Red);
{% endhighlight %}
{% highlight vb %}
checkBoxAdv1.Style = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Office2007 checkBoxAdv1.Office2007ColorScheme = Syncfusion.Windows.Forms.Office2007Theme.Managed Office2007Colors.ApplyManagedColors(Me, Color.Red) {% endhighlight %} {% endtabs %}


