Ribbon for WinForms
チェックボックス
要素 > リボンアイテム > チェックボックス

CheckBoxes are helpful when there are multiple options appearing in a list. It can be used to turn an option on or off.

The following ribbon group contains three CheckBox items.

Checkbox

Adding CheckBox at Design-Time

The Ribbon CheckBox can be added at design-time using the Ribbon Group Floating Toolbar or RibbonGroup Items Collection Editor. Also, you can customize the look of the Ribbon CheckBox using the Ribbon CheckBox Floating ToolBar or editing the properties in Properties Window.

This image below shows the floating toolbar of CheckBox.

Floating toolbar

Adding ChecBox through Code

The CheckBox can also be added to the C1Ribbon control programmatically. This can be done using the RibbonCheckBox class.

' リボン項目のCheckBoxボタンを追加します
Dim reminderCheckBox As RibbonCheckBox = New RibbonCheckBox()
reminderCheckBox.IconSet.Add(New C1BitmapIcon(Nothing, New Size(20, 20), Color.Transparent, Image.FromFile("images\reminder.png")))
reminderCheckBox.Text = "Reminder"
formatGroup.Items.Add(reminderCheckBox)
// リボン項目のCheckBoxボタンを追加します
RibbonCheckBox reminderCheckBox1 = new RibbonCheckBox();
reminderCheckBox1.IconSet.Add(new C1BitmapIcon(null, new Size(20, 20), Color.Transparent, Image.FromFile(@"images\reminder.png")));
reminderCheckBox1.Text ="Thumbnails";
formatGroup.Items.Add(reminderCheckBox1);
            
RibbonCheckBox reminderCheckBox2 = new RibbonCheckBox();
reminderCheckBox2.IconSet.Add(new C1BitmapIcon(null, new Size(20, 20), Color.Transparent, Image.FromFile(@"images\reminder.png")));
reminderCheckBox2.Text = "Document map";
formatGroup.Items.Add(reminderCheckBox2);