C1FontPicker コントロールの右上隅にあるスマートタグを使用して、C1FontPicker のビジュアルスタイルを選択できます。
)をクリックして[C1FontPicker のタスク]メニューを開きます。このコードスニペットは、「C1FontPicker の操作」で作成したフォントピッカーアプリケーションからの引用です。
| VB |
コードのコピー
|
|---|---|
InitializeComponent() ComboBox2.DataSource = [Enum].GetValues(GetType(VisualStyle)) |
|
| C# |
コードのコピー
|
|---|---|
InitializeComponent();
comboBox2.DataSource = Enum.GetValues(typeof(VisualStyle));
|
|
| VB |
コードのコピー
|
|---|---|
Private Sub ComboBox2_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox2.SelectedIndexChanged C1FontPicker1.VisualStyle = DirectCast(ComboBox2.SelectedItem, VisualStyle) End Sub |
|
| C# |
コードのコピー
|
|---|---|
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e) { c1FontPicker1.VisualStyle = (VisualStyle)comboBox2.SelectedItem; } |
|
