NativeExcel for .Net Developer's Reference

IWorksheet.DisplayAutomaticPageBreaks Property

Returns or sets the value which specifies whether automatic page breaks should be displayed.

[Visual Basic]
PropertyDisplayAutomaticPageBreaksAsBoolean
[C#]
boolDisplayAutomaticPageBreaks{get;set;}
[C++]
__propertyboolget_DisplayAutomaticPageBreaks();
__propertyvoidset_DisplayAutomaticPageBreaks(bool);
[JScript]
functiongetDisplayAutomaticPageBreaks():bool
functionsetDisplayAutomaticPageBreaks(bool);

Example

This example sets automatic page breaks to be displayed.

[C#]
book.Worksheets[1].DisplayAutomaticPageBreaks = true;
[VisualBasic]
book.Worksheets(1).DisplayAutomaticPageBreaks = True
[C++]
book->Worksheets->Item[1]->DisplayAutomaticPageBreaks = true;

See Also

IWorksheet Interface | NativeExcel Namespace