public String toString() {StringBuilder retval = new StringBuilder();retval.append("[MERGEDCELLS]").append("\n");retval.append("     .numregions =").append(getNumAreas()).append("\n");for (int k = 0; k < _numberOfRegions; k++) {CellRangeAddress r = _regions[_startIndex + k];retval.append("     .rowfrom =").append(r.getFirstRow()).append("\n");retval.append("     .rowto   =").append(r.getLastRow()).append("\n");retval.append("     .colfrom =").append(r.getFirstColumn()).append("\n");retval.append("     .colto   =").append(r.getLastColumn()).append("\n");}retval.append("[MERGEDCELLS]").append("\n");return retval.toString();}

public override String ToString(){StringBuilder retval = new StringBuilder();retval.Append("[MERGEDCELLS]").Append("\n");retval.Append("     .numregions =").Append(NumAreas).Append("\n");for (int k = 0; k < _numberOfRegions; k++){CellRangeAddress region = _regions[_startIndex + k];retval.Append("     .rowfrom    =").Append(region.FirstRow).Append("\n");retval.Append("     .rowto      =").Append(region.LastRow).Append("\n");retval.Append("     .colfrom    =").Append(region.FirstColumn).Append("\n");retval.Append("     .colto      =").Append(region.LastColumn).Append("\n");}retval.Append("[MERGEDCELLS]").Append("\n");return retval.ToString();}
