NativeExcel for .Net Developer's Reference

IPageSetup.PrintHeadings Property

Gets or sets a value that indicates whether the row and column headings are printed with this page.

[Visual Basic]
Property PrintHeadings As Boolean
[C#]
bool PrintHeadings { get; set; }
[C++]
__property bool get_PrintHeadings();
__property void set_PrintHeadings(bool );
[JScript]
function get PrintHeadings() : bool
function set PrintHeadings(bool);

Property Value

True if row and column headings are printed with this page.

Example

This example turns off the printing of headings for sheet one.

[C#]
book.Worksheets[1].PageSetup.PrintHeadings = false;
[Visual Basic]
book.Worksheets(1).PageSetup.PrintHeadings = False
[C++]
book->Worksheets->Item[1]->PageSetup->PrintHeadings = true;

See Also

IPageSetup Interface | NativeExcel Namespace | PageSetup Property