public class CheckBoxCollection extends CollectionBase
CheckBox objects in a worksheet.
Example
//Create a new Workbook.
Workbook workbook = new Workbook();
//Get the first worksheet in the workbook.
Worksheet sheet = workbook.getWorksheets().get(0);
int index = sheet.getCheckBoxes().add(15, 15, 20, 100);
CheckBox checkBox = sheet.getCheckBoxes().get(index);
checkBox.setText("Check Box 1");
| Modifier and Type | Method and Description |
|---|---|
int |
add(int upperLeftRow,
int upperLeftColumn,
int height,
int width)
Adds a checkBox to the collection.
|
CheckBox |
get(int index)
Gets the
CheckBox element at the specified index. |
public int add(int upperLeftRow,
int upperLeftColumn,
int height,
int width)
upperLeftRow - Upper left row index.upperLeftColumn - Upper left column index.height - Height of checkBox, in unit of pixel.width - Width of checkBox, in unit of pixel.CheckBox object index.public CheckBox get(int index)
CheckBox element at the specified index.get in class CollectionBaseindex - The zero based index of the element.See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.