Aspose::Cells::CellWatchCollection class

CellWatchCollection class

Represents the collection of cells on this worksheet being watched in the ‘watch window’.

class CellWatchCollection

Methods

MethodDescription
Add(int32_t row, int32_t column)Adds Aspose.Cells.CellWatch with a row and a column.
Add(const U16String& cellName)Adds Aspose.Cells.CellWatch with the name of the cell.
Add(const char16_t* cellName)Adds Aspose.Cells.CellWatch with the name of the cell.
begin()Returns an iterator to the beginning of the CellWatchCollection.
CellWatchCollection()Default constructor.
CellWatchCollection(CellWatchCollection_Impl* impl)Constructs from an implementation object.
CellWatchCollection(const CellWatchCollection& src)Copy constructor.
end()Returns an iterator to the end of the CellWatchCollection.
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()Gets the number of elements contained in the instance.
IsNull() constChecks whether the implementation object is nullptr.
explicit operator bool() constoperator bool()
operator=(const CellWatchCollection& src)operator=
~CellWatchCollection()Destructor.

Fields

FieldDescription
_implThe 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