Aspose::Cells::Drawing::CheckBoxCollection class

CheckBoxCollection class

Represents a collection of CheckBox objects in a worksheet.

class CheckBoxCollection

Methods

MethodDescription
Add(int32_t topRow, int32_t leftColumn, int32_t height, int32_t width)Adds a checkBox to the collection.
begin()Returns an iterator to the beginning of the CheckBoxCollection.
CheckBoxCollection(CheckBoxCollection_Impl* impl)Constructs from an implementation object.
CheckBoxCollection(const CheckBoxCollection& src)Copy constructor.
end()Returns an iterator to the end of the CheckBoxCollection.
Get(int32_t index)Gets the CheckBox element at the specified index.
GetCount()Gets the number of elements contained in the instance.
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