| Using the C1Input Controls > C1Input Controls > C1FontPicker Control Overview > Working with C1FontPicker > Applying Visual Styles to C1Font Picker |
The smart tag on the top right corner of the C1FontPicker control lets users select the visual style of the C1FontPicker.
) to open the C1FontPicker Tasks menu.The code snippets refer the font picker application created in Working with C1FontPicker.
| VB |
Copy Code
|
|---|---|
InitializeComponent() ComboBox2.DataSource = [Enum].GetValues(GetType(VisualStyle)) |
|
| C# |
Copy Code
|
|---|---|
InitializeComponent();
comboBox2.DataSource = Enum.GetValues(typeof(VisualStyle));
|
|
| VB |
Copy Code
|
|---|---|
Private Sub ComboBox2_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox2.SelectedIndexChanged C1FontPicker1.VisualStyle = DirectCast(ComboBox2.SelectedItem, VisualStyle) End Sub |
|
| C# |
Copy Code
|
|---|---|
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e) { c1FontPicker1.VisualStyle = (VisualStyle)comboBox2.SelectedItem; } |
|
