ListObject::HeaderRowRange Property

 

Gets a Range that represents the range of the header row.

Namespace:   Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

property Range^ HeaderRowRange {
	Range^ get();
}

Property Value

Type: Microsoft.Office.Interop.Excel::Range^

A Range that represents the range of the header row.

If there is no header row, HeaderRowRange returns null.

The following code example creates a DataTable and a ListObject, and binds the ListObject to the DataTable. It then gets the range that contains the header row and changes the header row font to bold.

This example is for a document-level customization.

No code example is currently available or this language may not be supported.
Return to top
Show: