Aspose Demos > .NET Components > Aspose.Cells > C# > QuickStart > Controls > Adding CheckBox

 

 Adding CheckBox - Aspose.Cells

This demo shows how to add checkbox control in your worksheet using Aspose.Cells for .NET.

CheckBoxes are handy if you want to provide a way for a user to choose between two options, such as true or false; yes or no. Aspose.Cells allows you to use checkboxes in your worksheets, if desired. Aspose.Cells provides CheckBoxes class, which is used to add a new checkbox to the collection. There is another class CheckBox, which represents a checkbox used to define all types of settings. The demo creates an excel file. Then by using simple Aspose.Cells APIs it adds a checkbox and apply different setting to it.

Click Process to see how example adds a CheckBox control to the workbook by setting different options. You can either open the resulting excel file into MS Excel or save directly to your disk.