Skip to content

Latest commit

 

History

History
105 lines (75 loc) · 3.91 KB

File metadata and controls

105 lines (75 loc) · 3.91 KB
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

Themes and Visual Styles in Windows Forms CheckBox (CheckBoxAdv)

This section discusses the themes and visual style settings supported by the CheckBoxAdv control.

Themes

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 %}

Windows forms CheckBoxAdv Themes appearance

Visual Styles

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 %}

Windows forms CheckBoxAdv visualstyles

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 %}

Windows forms CheckBoxAdv Office2007ColorScheme is set to managed