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]
Property DisplayAutomaticPageBreaks As Boolean
[C#]
bool DisplayAutomaticPageBreaks { get; set; }
[C++]
__property bool get_DisplayAutomaticPageBreaks();
__property void set_DisplayAutomaticPageBreaks(bool );
[JScript]
function get DisplayAutomaticPageBreaks() : bool
function set DisplayAutomaticPageBreaks(bool);

Example

This example sets automatic page breaks to be displayed.

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

See Also

IWorksheet Interface | NativeExcel Namespace