Visual Styles in Windows Forms FontComboBox
27 Apr 20211 minute to read
Visual Styles for the FontComboBox control can be enabled through below properties.
Properties | Description |
---|---|
VisualStyle | Sets the visual style for the control. The options are Office2016Colorful, Office2016White, Office2016Black, Office2016DarkGray, Metro, Office2010, Office2007, Default. |
Office2007ColorScheme | Specifies the office color schemes for Office2007 style. The color schemes are,Blue,Silver and Black. |
this.fontComboBox2.VisualStyle = Syncfusion.Windows.Forms.Tools.ThemedComboBoxStyles.Office2016Colorful;
Me.fontComboBox2.VisualStyle = Syncfusion.Windows.Forms.Tools.ThemedComboBoxStyles.Office2016Colorful
Custom Colors
We can also apply custom colors to the FontComboBox control by setting Office2007ColorTheme to “Managed” and specifying the custom color through the ApplyManagedColors method as follows.
this.fontComboBox2.Office2007ColorTheme = Syncfusion.Windows.Forms.Office2007Theme.Managed;
Office2007Colors.ApplyManagedColors(this, Color.Orchid);
Me.fontComboBox2.Office2007ColorTheme = Syncfusion.Windows.Forms.Office2007Theme.Managed;
Office2007Colors.ApplyManagedColors(Me, Color.Orchid)