Skip to main content
A newer version of this page is available.

PrintingSystemBase.InsertPageBreak(Single, Margins, Nullable<PaperKind>, Size, Nullable<Boolean>) Method

Inserts a page break at a specified position, with the specified settings for the subsequent page.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v20.2.Core.dll

NuGet Packages: DevExpress.Printing.Core, DevExpress.WindowsDesktop.Printing.Core

Declaration

public void InsertPageBreak(
    float pos,
    Margins margins,
    PaperKind? paperKind,
    Size pageSize,
    bool? landscape
)

Parameters

Name Type Description
pos Single

A Single value which specifies the position to insert a page break.

margins Margins

A Margins object.

paperKind Nullable<PaperKind>

A PaperKind enumeration value.

pageSize Size

A Size structure.

landscape Nullable<Boolean>

true to print a page in landscape orientation; otherwise, false.

Remarks

A page break must be inserted between two bricks. The pos parameter value must be the next coordinate value, after the lowest coordinate of the brick preceding the page break.

See Also