HorizontalPageBreak class

HorizontalPageBreak class

Encapsulates the object that represents a horizontal page break.

The HorizontalPageBreak type exposes the following members:

Properties

PropertyDescription
start_columnGets the start column index of this horizontal page break.
end_columnGets the end column index of this horizontal page break.
rowGets the zero based row index.

Example

from aspose.cells import Workbook

# Instantiating a Workbook object
workbook = Workbook()
# Obtaining the reference of the newly added worksheet by passing its sheet index
worksheet = workbook.worksheets[0]
# Add a page break at cell Y30
Index = worksheet.horizontal_page_breaks.add("Y30")
# get the newly added horizontal page break
hPageBreak = worksheet.horizontal_page_breaks[Index]

See Also