NativeExcel2 for .Net Developer's Reference

IPageSetup.SetPrintTitleRowsMethod(Int32)

Sets the specified row to be repeated on the top of each page.

[Visual Basic]
SubSetPrintTitleRows(_
ByValRowAsInteger_
)
[C#]
voidSetPrintTitleRows(
intRow
);
[C++]
voidSetPrintTitleRows(
intRow
);
[JScript]
functionSetPrintTitleRows(
intRow
);

Parameters

Row
Integer. Indicates the index of the row (one-based).

Example

This example sets the second row as the title rows. .

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

See Also

IPageSetup Interface | NativeExcel Namespace | IPageSetup.SetPrintTitleRows Overload List | PageSetup Property | SetPrintTitleColumns Method | PrintTitleRows Property | PrintTitleRowsDefined Property