public class HorizontalPageBreakCollection extends CollectionBase
HorizontalPageBreak objects.
Example
Workbook excel = new Workbook();
//Add a pagebreak at G5
excel.getWorksheets().get(0).getHorizontalPageBreaks().add("G5");
excel.getWorksheets().get(0).getVerticalPageBreaks().add("G5");
| Modifier and Type | Method and Description |
|---|---|
int |
add(int row)
Adds a horizontal page break to the collection.
|
int |
add(int row,
int column)
Adds a horizontal page break to the collection.
|
int |
add(int row,
int startColumn,
int endColumn)
Adds a horizontal page break to the collection.
|
int |
add(java.lang.String cellName)
Adds a horizontal page break to the collection.
|
HorizontalPageBreak |
get(int index)
Gets the
HorizontalPageBreak element at the specified index. |
HorizontalPageBreak |
get(java.lang.String cellName)
Gets the
HorizontalPageBreak element with the specified cell name. |
void |
removeAt(int index)
Removes the HPageBreak element at a specified name.
|
public HorizontalPageBreak get(int index)
HorizontalPageBreak element at the specified index.get in class CollectionBaseindex - The zero based index of the element.public HorizontalPageBreak get(java.lang.String cellName)
HorizontalPageBreak element with the specified cell name.cellName - Cell name.public int add(int row,
int startColumn,
int endColumn)
Remarks
This method is used to add a horizontal pagebreak within a print area.row - Row index, zero based.startColumn - Start column index, zero based.endColumn - End column index, zero based.HorizontalPageBreak object index.public int add(int row)
Remarks
Page break is added in the top left of the cell. Please set a horizontal page break and a vertical page break concurrently.row - Cell row index, zero based.HorizontalPageBreak object index.public int add(int row,
int column)
Remarks
Page break is added in the top left of the cell. Please set a horizontal page break and a vertical page break concurrently.row - Cell row index, zero based.column - Cell column index, zero based.HorizontalPageBreak object index.public int add(java.lang.String cellName)
Remarks
Page break is added in the top left of the cell. Please set a horizontal page break and a vertical page break concurrently.cellName - Cell name.HorizontalPageBreak object index.public void removeAt(int index)
removeAt in class CollectionBaseindex - Element index, zero based.See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.