public final class VerticalPageBreakCollection extends PageBreakCollection<VerticalPageBreak>
VerticalPageBreak
).
Following code demonstrates how to add PageBreaks to ExcelWorksheet.
int columnsPerPage = 6, rowsPerPage = 30;
int usedColumnsCount = ws.calculateMaxUsedColumns();
for (int i = columnsPerPage; i < usedColumnsCount; i += columnsPerPage)
ws.getVerticalPageBreaks().add(i);
for (int i = rowsPerPage; i < ws.getRows().size(); i += rowsPerPage)
ws.getHorizontalPageBreaks().add(i);
Modifier and Type | Method and Description |
---|---|
void |
add(int column)
Ads a new vertical page break left to the specified column.
|
void |
add(int column,
int firstRow,
int lastRow)
Ads a new vertical page break left to the specified column and within specified rows.
|
VerticalPageBreak |
get(int index)
Gets the vertical page break at the specified index.
|
void |
set(int index,
VerticalPageBreak value)
Sets the vertical page break at the specified index.
|
clear, iterator, remove, size
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public void add(int column)
column
- The zero-based index of the column.public void add(int column, int firstRow, int lastRow)
column
- The zero-based index of the column.firstRow
- The zero-based index of the first row.lastRow
- The zero-based index of the last row.public VerticalPageBreak get(int index)
public void set(int index, VerticalPageBreak value)
© GemBox Ltd. — All rights reserved.