Aspose::Cells::Drawing::CheckBoxCollection class

CheckBoxCollection class

Represents a collection of CheckBox objects in a worksheet.

class CheckBoxCollection

Methods

MethodDescription
Add(int32_t upperLeftRow, int32_t upperLeftColumn, int32_t height, int32_t width)Adds a checkBox to the collection.
CheckBoxCollection(CheckBoxCollection_Impl* impl)Constructs from an implementation object.
CheckBoxCollection(const CheckBoxCollection& src)Copy constructor.
Get(int32_t index)Gets the CheckBox element at the specified index.
GetCount()
IsNull() constChecks whether the implementation object is nullptr.
explicit operator bool() constoperator bool()
operator=(const CheckBoxCollection& src)operator=
~CheckBoxCollection()Destructor.

Fields

FieldDescription
_implThe implementation object.

Examples

Aspose::Cells::Startup();
//Create a new Workbook.
Workbook 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(u"Check Box 1");


Aspose::Cells::Cleanup();

See Also