We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Display Checkbox in the cell

Hi !

I have created checkbox as per the following.

However I am unable to fix the position for the checkbox in the cell.

How can I disply checkbox in the specified cell.?

Please guide me.

int index = excelbook.Worksheets[0].CheckBoxes.Add(5, 5, 100, 120);

//Get the checkbox object.

Aspose.Cells.CheckBox checkbox = excelbook.Worksheets[0].CheckBoxes[index];


Could you post a sample file here? We will check it soon.

In Excel,the check box not only means a selected box. If you right click the check box, you will get a large box. All the property of the position of the check box in Aspose.Cells should be same as the large box.


Please change your codes as the following:

Cells cells = workbook.Worksheets[0].Cells;

workbook.Worksheets[0].CheckBoxes.Add(5, 5, cells.GetRowHeightPixel(5), cells.GetColumnWidthPixel(5));