The CheckBox represents a check box cell. This can be useful when you want to have some sort of form in your page that users can fill out, and it makes getting what they have selected easy to do.
To create a check box cell, follow this example:
var c = new GC.Spread.Sheets.CellTypes.CheckBox();
sheet.setCellType(3, 2, c, GC.Spread.Sheets.SheetArea.viewport);
The CheckBox can support a three-state check box. You can use the isThreeState method to get and set whether the check box supports three states. For example:
var state = c.isThreeState();
The three states are true, false, or indeterminate. Every state has its own text; you can use the textTrue, textFalse, and textIndeterminate methods to get and set these states' text. For example:
You can use the caption method to get and set the caption of the check box cell. Use the textAlign method to get and set the text alignment relative to the check box. The setting is a CheckBoxTextAlign enumeration value.