Skip to main content

IXlSheet.ColumnPageBreaks Property

Provides access to the collection of column page breaks in a worksheet.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v24.1.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

IXlPageBreaks ColumnPageBreaks { get; }

Property Value

Type Description
IXlPageBreaks

An object exposing the IXlPageBreaks interface.

Remarks

Use the ColumnPageBreaks property to get access to a collection of vertical (column) page breaks in a worksheet. To insert a page break after the specified column, use the IXlPageBreaks.Add method. To remove the required page break from the collection, use the IXlPageBreaks.Remove or IXlPageBreaks.RemoveAt method. To clear all column page breaks, use the IXlPageBreaks.Clear method.

For more information on how to add page breaks to a worksheet, refer to the How to: Insert Page Breaks in a Worksheet document.

Example

Note

A complete sample project is available at https://github.com/DevExpress-Examples/excel-export-api-examples

// Insert a page break after the column "B".
sheet.ColumnPageBreaks.Add(2);
// Insert a page break after the tenth row.
sheet.RowPageBreaks.Add(10);
See Also