Syncfusion.XlsIO.Base
Example 


CheckBoxes Property

Gets the ICheckBoxes collection with all ICheckBoxShape inside the sheet. Read-only.
Syntax
'Declaration
 
ReadOnly Property CheckBoxes As ICheckBoxes
'Usage
 
Dim instance As ITabSheet
Dim value As ICheckBoxes
 
value = instance.CheckBoxes
ICheckBoxes CheckBoxes {get;}
Example
The following code illustrates how to access ICheckBoxes collection.
using Syncfusion.XlsIO;
using System;
            
class Program
{
    static void Main()
    {
        using (ExcelEngine excelEngine = new ExcelEngine())
        {
            //Create worksheet
            IApplication application = excelEngine.Excel;
            application.DefaultVersion = ExcelVersion.Excel2013;
            IWorkbook workbook = application.Workbooks.Create(1);
            IWorksheet worksheet = workbook.Worksheets[0];
            
            //Add combobox
            worksheet.CheckBoxes.AddCheckBox(1, 1, 20, 100);
            worksheet.CheckBoxes.AddCheckBox(5, 5, 20, 100);
            
            //Check count
            Console.Write(worksheet.CheckBoxes.Count);
            
            //Save and dispose
            workbook.SaveAs("Shapes.xlsx");
            workbook.Close();
            Console.ReadKey();
        }
    }
}
//Output will be
//2
AssemblyVersion

Syncfusion.XlsIO.Base: 16.3460.0.29

See Also