Aspose::Cells::HorizontalPageBreak class
Contents
[
Hide
]HorizontalPageBreak class
Encapsulates the object that represents a horizontal page break.
class HorizontalPageBreak
Methods
Method | Description |
---|---|
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() const | Checks whether the implementation object is nullptr. |
explicit operator bool() const | operator bool() |
operator=(const HorizontalPageBreak& src) | operator= |
~HorizontalPageBreak() | Destructor. |
Fields
Field | Description |
---|---|
_impl | The 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
- Namespace Aspose::Cells
- Library Aspose.Cells for C++