Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PageBreaksCollection Interface

A collection of page breaks in a worksheet.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

public interface PageBreaksCollection :
    ISimpleCollection<int>,
    IEnumerable<int>,
    IEnumerable,
    ICollection

The following members return PageBreaksCollection objects:

#Remarks

Page breaks in the worksheet are contained in two PageBreaksCollection collections and can be accessed using the Worksheet.VerticalPageBreaks and Worksheet.HorizontalPageBreaks properties.

The following picture shows three horizontal page breaks with the values 3, 5 and 9 and two vertical page breaks with the values 2 and 5.

PageBreaks

To insert page break at the required row or column, use the PageBreaksCollection.Add method. To remove page breaks, use the PageBreaksCollection.Clear method.

See Also