App: Add colCount and rowCount to Range

This commit is contained in:
Chris Hennes
2021-11-02 15:12:43 -05:00
parent 2ecd720de8
commit 32790d1351

View File

@@ -120,6 +120,12 @@ public:
/** Current column */
inline int column() const { return col_curr; }
/** Row count */
inline int rowCount() const { return row_end - row_begin + 1; }
/** Column count */
inline int colCount() const { return col_end - col_begin + 1; }
/** Position of start of range */
inline CellAddress from() const { return CellAddress(row_begin, col_begin); }