HorizontalPageBreak Class

Encapsulates the object that represents a horizontal page break.
Inheritance Hierarchy
SystemObject
  Aspose.CellsHorizontalPageBreak

Namespace:  Aspose.Cells
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 20.11.0.0 (20.11)
Syntax
public class HorizontalPageBreak

The HorizontalPageBreak type exposes the following members.

Properties
  NameDescription
Public propertyEndColumn
Gets the end column index of this horizontal page break.
Public propertyRow
Gets the zero based row index.
Public propertyStartColumn
Gets the start column index of this horizontal page break.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Examples
[C#]

//Instantiating a Workbook object
Workbook workbook = new Workbook();

//Obtaining the reference of the newly added worksheet by passing its sheet index
Worksheet worksheet = workbook.Worksheets[0];

//Add a page break at cell Y30
int Index = worksheet.HorizontalPageBreaks.Add("Y30");

//get the newly added horizontal page break
HorizontalPageBreak hPageBreak = worksheet.HorizontalPageBreaks[Index];  

[VB.NET]

'Instantiating a Workbook object
Dim workbook As New Workbook()

'Obtaining the reference of the newly added worksheet by passing its sheet index
Dim worksheet As Worksheet = workbook.Worksheets(0)

'Add a page break at cell Y30
Dim Index As Integer = worksheet.HorizontalPageBreaks.Add("Y30")

'get the newly added horizontal page break
Dim hPageBreak As HorizontalPageBreak = worksheet.HorizontalPageBreaks(Index)
See Also