Aspose::Cells::HorizontalPageBreak class

HorizontalPageBreak class

Encapsulates the object that represents a horizontal page break.

class HorizontalPageBreak

Methods

MethodDescription
GetEndColumn()Gets the end column index of this horizontal page break.
GetRow()Gets the zero based row index.
GetStartColumn()Gets the start column index of this horizontal page break.
HorizontalPageBreak(HorizontalPageBreak_Impl* impl)Constructs from an implementation object.
HorizontalPageBreak(const HorizontalPageBreak& src)Copy constructor.
IsNull() constChecks whether the implementation object is nullptr.
explicit operator bool() constoperator bool()
operator=(const HorizontalPageBreak& src)operator=
~HorizontalPageBreak()Destructor.

Fields

FieldDescription
_implThe implementation object.

Examples

Aspose::Cells::Startup();
//Instantiating a Workbook object
Workbook workbook;

//Obtaining the reference of the newly added worksheet by passing its sheet index
Worksheet worksheet = workbook.GetWorksheets().Get(0);

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

//get the newly added horizontal page break
HorizontalPageBreak hPageBreak = worksheet.GetHorizontalPageBreaks().Get(Index);

Aspose::Cells::Cleanup();

See Also