From 32790d13518fb05bd1ebf3675344a53c2e1f390c Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Tue, 2 Nov 2021 15:12:43 -0500 Subject: [PATCH] App: Add colCount and rowCount to Range --- src/App/Range.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/App/Range.h b/src/App/Range.h index 554a02057a..a9182b7466 100644 --- a/src/App/Range.h +++ b/src/App/Range.h @@ -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); }