NativeExcel2 for .Net Developer's Reference

IPageSetup.SetPrintTitleColumnsMethod

Sets the columns that contain the cells to be repeated on the left side of each page by using column indexes.

Overload List

Sets the first column to be repeated on the left side of each page.

[Visual Basic] SubSetPrintTitleColumns()
[C#] voidSetPrintTitleColumns();
[C++] voidSetPrintTitleColumns();
[JScript] functionSetPrintTitleColumns();

Sets the specified column to be repeated on the left side of each page.

[Visual Basic] SubSetPrintTitleColumns(ByValInteger)
[C#] voidSetPrintTitleColumns(int);
[C++] voidSetPrintTitleColumns(int);
[JScript] functionSetPrintTitleColumns(int);

Sets the specified range of columns to be repeated on the left side of each page.

[Visual Basic] SubSetPrintTitleColumns(ByValInteger,ByValInteger)
[C#] voidSetPrintTitleColumns(int,int);
[C++] voidSetPrintTitleColumns(int,int);
[JScript] functionSetPrintTitleColumns(int,int);

Example

This example defines column two through four as the title columns.

[C#]
book.Worksheets[1].PageSetup.SetPrintTitleColumns(2, 3);
[VisualBasic]
book.Worksheets(1).PageSetup.SetPrintTitleColumns(2, 3)
[C++]
book->Worksheets->Item[1]->PageSetup->SetPrintTitleColumns(2, 3);

See Also

IPageSetup Interface | NativeExcel Namespace | PageSetup Property | SetPrintTitleRows Method | PrintTitleColumns Property | PrintTitleColumnsDefined Property