! * Returns the number of rows in the \c Spreadsheet. * @return The number of rows in the \c Spreadsheet. */
| 277 | * @return The number of rows in the \c Spreadsheet. |
| 278 | */ |
| 279 | int Spreadsheet::rowCount() const { |
| 280 | int result = 0; |
| 281 | for (auto* col : children<Column>()) { |
| 282 | const int col_rows = col->rowCount(); |
| 283 | if (col_rows > result) |
| 284 | result = col_rows; |
| 285 | } |
| 286 | return result; |
| 287 | } |
| 288 | |
| 289 | /*! |
| 290 | * Removes \c count rows starting from the \c first row index in the spreadsheet. |
no outgoing calls
no test coverage detected