Exemplo n.º 1
0
        /**
         * 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);
        }
Exemplo n.º 2
0
        /**
         * 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);
        }
Exemplo n.º 3
0
        /**
         * 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);
        }