/** * Gets the total number of columns. * * This refers to the hard bound on columns. It is possible that your * spreadsheet has many empty columns, all of which are counted in * this count. * * Column positions 1 to getColCount() are valid. */ public int getColCount() { ColCount count = getExtension(ColCount.class); if (count != null) { return count.getCount(); } else { return 0; } }
/** * Gets the total number of rows. * * This refers to the hard bound on rows. It is possible that your * spreadsheet has many, many empty rows, all of which are counted in * this count. * * Column positions 1 to getRowCount() are valid. */ public int getRowCount() { RowCount count = getExtension(RowCount.class); if (count != null) { return count.getCount(); } else { return 0; } }
/** * Gets the total number of columns. * * This refers to the hard bound on columns. It is possible that your * spreadsheet has many empty columns, all of which are counted in * this count. * * Column positions 1 to getColCount() are valid. */ public int getColCount() { ColCount count = getExtension(ColCount.class); if (count != null) { return count.getCount(); } else { return 0; } }
/** * Gets the total number of rows. * * This refers to the hard bound on rows. It is possible that your * spreadsheet has many, many empty rows, all of which are counted in * this count. * * Column positions 1 to getRowCount() are valid. */ public int getRowCount() { RowCount count = getExtension(RowCount.class); if (count != null) { return count.getCount(); } else { return 0; } }