Aspose::Cells::Drawing::CheckBoxCollection class
Contents
[
Hide
]CheckBoxCollection class
Represents a collection of CheckBox objects in a worksheet.
class CheckBoxCollection
Methods
Method | Description |
---|---|
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() const | Checks whether the implementation object is nullptr. |
explicit operator bool() const | operator bool() |
operator=(const CheckBoxCollection& src) | operator= |
~CheckBoxCollection() | Destructor. |
Fields
Field | Description |
---|---|
_impl | The 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
- Namespace Aspose::Cells::Drawing
- Library Aspose.Cells for C++