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

XlPrintTitles Class

Represents the object that specifies rows and columns to be repeated on every printed page.

Namespace: DevExpress.Export.Xl

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

Declaration

public class XlPrintTitles

The following members return XlPrintTitles objects:

Remarks

To get an instance of the XlPrintTitles class, use the IXlSheet.PrintTitles property. To print specific rows at the top of every page, utilize the XlPrintTitles.SetRows method. To print specific columns on the left of every page, use the XlPrintTitles.SetColumns method. For more details, refer to the How to: Print Titles on a Worksheet example.

Example

Note

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

// Print the first column and the first row on every page.
sheet.PrintTitles.SetColumns(0, 0);
sheet.PrintTitles.SetRows(0, 0);

Inheritance

Object
XlPrintTitles
See Also