Syncfusion.XlsIO.Base
Example 


ComboBoxes Property

Gets the IComboBoxes collection with all IComboBoxShape inside the sheet. Read-only.
Syntax
'Declaration
 
ReadOnly Property ComboBoxes As IComboBoxes
'Usage
 
Dim instance As ITabSheet
Dim value As IComboBoxes
 
value = instance.ComboBoxes
IComboBoxes ComboBoxes {get;}
Example
The following code illustrates how to access the IComboBoxes 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
            IComboBoxShape combobox1 = worksheet.ComboBoxes.AddComboBox(1, 1, 20, 100);
            IComboBoxShape combobox2 = worksheet.ComboBoxes.AddComboBox(5, 5, 20, 100);
            
            //Get count
            Console.Write(worksheet.ComboBoxes.Count);
            
            //Save and dispose
            workbook.SaveAs("Shapes.xlsx");
            workbook.Close();
            Console.ReadKey();
        }
    }
}
//Output will be
//2
AssemblyVersion

Syncfusion.XlsIO.Base: 16.4460.0.40

See Also