/** * Removes a page break at the indicated row * @param row */ public void RemoveRowBreak(int row) { if (RowBreaksRecord.GetBreaks().Length < 1) { throw new ArgumentException("Sheet does not define any row breaks"); } RowBreaksRecord.RemoveBreak((short)row); }
/** * Queries if the specified row has a page break * @param row * @return true if the specified row has a page break */ public bool IsRowBroken(int row) { return(RowBreaksRecord.GetBreak(row) != null); }
/** * Sets a page break at the indicated row * @param row */ public void SetRowBreak(int row, short fromCol, short toCol) { RowBreaksRecord.AddBreak((short)row, fromCol, toCol); }