NativeExcel for .Net Developer's Reference

IPageBreaks.ResetMethod

Removes any page breaks from specified collection.

[Visual Basic]
SubReset()
[C#]
voidReset();
[C++]
voidReset();
[JScript]
functionReset();

Example

This example removes any horizontal and vertical page breaks from sheet one.

[C#]
book.Worksheets[1].HPageBreaks.Reset();
book.Worksheets[1].VPageBreaks.Reset();
[VisualBasic]
book.Worksheets(1).HPageBreaks.Reset()
book.Worksheets(1).VPageBreaks.Reset()
[C++]
book->Worksheets->Item[1]->HPageBreaks->Reset();
book->Worksheets->Item[1]->VPageBreaks->Reset();

See Also

IPageBreaks Interface | NativeExcel Namespace | IWorksheet.HPageBreaks | IWorksheet.VPageBreaks | IPageBreak Interface