NativeExcel2 for .Net Developer's Reference

IPageSetup.PrintTitleColumns Property

Gets or sets the columns that contain the cells to be repeated on the left side of each page, as a string in A1-style notation.

[Visual Basic]
PropertyPrintTitleColumnsAsString
[C#]
stringPrintTitleColumns{get;set;}
[C++]
__propertyString*get_PrintTitleColumns();
__propertyvoidset_PrintTitleColumns(String*);
[JScript]
functiongetPrintTitleColumns():String
functionsetPrintTitleColumns(String);

Remarks

Set this property to the empty string to turn off title columns.

Example

This example defines row two as the title row, and it defines columns one through two as the title columns.

[C#]
book.Worksheets[1].PageSetup.PrintTitleRows = "$2:$2";
book.Worksheets[1].PageSetup.PrintTitleColumns = "$A:$B";
[VisualBasic]
book.Worksheets(1).PageSetup.PrintTitleRows = "$2:$2"
book.Worksheets(1).PageSetup.PrintTitleColumns = "$A:$B"
[C++]
book->Worksheets->Item[1]->PageSetup->PrintTitleRows = S"$2:$2";
book->Worksheets->Item[1]->PageSetup->PrintTitleColumns = S"$A:$B";

See Also

IPageSetup Interface | NativeExcel Namespace | PageSetup Property | PrintTitleRows Property | SetPrintTitleColumns Method | PrintTitleColumnsDefined Property