NativeExcel for .Net Developer's Reference

IPageSetup.PrintTitleRowsDefined Property

Gets a value that indicates whether the PrintTitleRows is defined.

[Visual Basic]
PropertyReadOnlyPrintTitleRowsDefinedAsBoolean
[C#]
boolPrintTitleRowsDefined{get;}
[C++]
__propertyboolget_PrintTitleRowsDefined();
[JScript]
functiongetPrintTitleRowsDefined():bool

Property Value

True if PrintTitleRows is defined; otherwise, false.

Example

This example clears the PrintTitleRows if it's defined.

[C#]
if (book.Worksheets[1].PageSetup.PrintTitleRowsDefined)   
    book.Worksheets[1].PageSetup.PrintTitleRows = "";
[VisualBasic]
If book.Worksheets(1).PageSetup.PrintTitleRowsDefined Then
   book.Worksheets(1).PageSetup.PrintTitleRows = ""
End If
[C++]
if (book->Worksheets->Item[1]->PageSetup->PrintTitleRowsDefined) 
    book->Worksheets->Item[1]->PageSetup->PrintTitleRows = S"";

See Also

IPageSetup Interface | NativeExcel Namespace | PageSetup Property | PrintTitleRows Property