Aspose::Cells::HorizontalPageBreakCollection class

HorizontalPageBreakCollection class

Encapsulates a collection of HorizontalPageBreak objects.

class HorizontalPageBreakCollection

Methods

MethodDescription
Add(int32_t row, int32_t startColumn, int32_t endColumn)Adds a horizontal page break to the collection.
Add(int32_t row)Adds a horizontal page break to the collection.
Add(int32_t row, int32_t column)Adds a horizontal page break to the collection.
Add(const U16String& cellName)Adds a horizontal page break to the collection.
Add(const char16_t* cellName)Adds a horizontal page break to the collection.
Get(int32_t index)Gets the HorizontalPageBreak element at the specified index.
Get(const U16String& cellName)Gets the HorizontalPageBreak element with the specified cell name.
Get(const char16_t* cellName)Gets the HorizontalPageBreak element with the specified cell name.
GetCount()
HorizontalPageBreakCollection(HorizontalPageBreakCollection_Impl* impl)Constructs from an implementation object.
HorizontalPageBreakCollection(const HorizontalPageBreakCollection& src)Copy constructor.
IsNull() constChecks whether the implementation object is nullptr.
explicit operator bool() constoperator bool()
operator=(const HorizontalPageBreakCollection& src)operator=
RemoveAt(int32_t index)Removes the HPageBreak element at a specified name.
~HorizontalPageBreakCollection()Destructor.

Fields

FieldDescription
_implThe implementation object.

Examples

Aspose::Cells::Startup();
Workbook excel;

//Add a pagebreak at G5
excel.GetWorksheets().Get(0).GetHorizontalPageBreaks().Add(u"G5");
excel.GetWorksheets().Get(0).GetVerticalPageBreaks().Add(u"G5");

Aspose::Cells::Cleanup();

See Also