Aspose::Cells::CellWatchCollection class
Contents
[
Hide
]CellWatchCollection class
Represents the collection of cells on this worksheet being watched in the ‘watch window’.
class CellWatchCollection
Methods
Method | Description |
---|---|
Add(int32_t row, int32_t column) | Adds CellWatch with row and column. |
Add(const U16String& cellName) | Adds CellWatch with the name the of cell. |
Add(const char16_t* cellName) | Adds CellWatch with the name the of cell. |
CellWatchCollection() | Default constructor. |
CellWatchCollection(CellWatchCollection_Impl* impl) | Constructs from an implementation object. |
CellWatchCollection(const CellWatchCollection& src) | Copy constructor. |
Get(int32_t index) | Gets and sets CellWatch by index. |
Get(const U16String& cellName) | Gets and sets CellWatch by the name of the cell. |
Get(const char16_t* cellName) | Gets and sets CellWatch by the name of the cell. |
GetCount() | |
IsNull() const | Checks whether the implementation object is nullptr. |
explicit operator bool() const | operator bool() |
operator=(const CellWatchCollection& src) | operator= |
~CellWatchCollection() | Destructor. |
Fields
Field | Description |
---|---|
_impl | The implementation object. |
Examples
Aspose::Cells::Startup();
//Instantiating a Workbook object
Workbook workbook;
// Get the first Worksheet.
Worksheet sheet = workbook.GetWorksheets().Get(0);
// Add Cell Watch Item into the watch window
sheet.GetCellWatches().Add(u"B2");
Aspose::Cells::Cleanup();
See Also
- Namespace Aspose::Cells
- Library Aspose.Cells for C++