property List.HeaderHeight as Long
Retrieves or sets a value indicating control's header height.

TypeDescription
Long A long expression that indicates the height of the control's header bar.
Use the HeaderHeight property to change the height of the control's header bar. Use the HeaderVisible property to hide the control's header bar. Use the LevelKey property to display the control's header bar using multiple levels. If the control displays the header bar using multiple levels the HeaderHeight property gets the height in pixels of a single level in the header bar. The control's header displays multiple levels if there are two or more neighbor columns with the same non empty level key. Use the HTMLCaption property to display multiple lines in the column's caption. Use the Add method to add new columns to the control. The HeaderSingleLine property specifies whether the header displays captions using multiple lines. 

For instance, the following VB sample displays the control's header bar using multiple lines:

With List1
        .BeginUpdate
            .HeaderHeight = 32
            With .Columns.Add("Line 1" & vbCrLf & "Line 2")
                .HeaderMultiLine = True
            End With
            With .Columns.Add("Line 1" & vbCrLf & "Line 2")
                .HeaderMultiLine = True
            End With
        .EndUpdate
End With

The following C++ sample displays a header bar using multiple lines:

#include "Columns.h"
#include "Column.h"
m_list.BeginUpdate();
m_list.SetHeaderHeight( 32 );
m_list.SetHeaderVisible( TRUE );
CColumn column1( V_DISPATCH( &m_list.GetColumns().Add( "Column 1" ) ) );
	column1.SetHTMLCaption( "Line1<br>Line2" );
CColumn column2( V_DISPATCH( &m_list.GetColumns().Add( "Column 2" ) ) );
	column2.SetHTMLCaption( "Line1<br>Line2" );
m_list.EndUpdate();

The following VB.NET sample displays a header bar using multiple lines:

With AxList1
    .BeginUpdate()
    .HeaderVisible = True
    .HeaderHeight = 32
    With .Columns.Add("Column 1")
        .HTMLCaption = "Line1<br>Line2"
    End With
    With .Columns.Add("Column 2")
        .HTMLCaption = "Line1<br>Line2"
    End With
    .EndUpdate()
End With

The following C# sample displays a header bar using multiple lines:

axList1.BeginUpdate();
axList1.HeaderVisible = true;
axList1.HeaderHeight = 32;
EXLISTLib.Column column1 = axList1.Columns.Add("Column 1") as EXLISTLib.Column ;
column1.HTMLCaption = "Line1<br>Line2";
EXLISTLib.Column column2 = axList1.Columns.Add("Column 2") as EXLISTLib.Column;
column2.HTMLCaption = "Line1<br>Line2";
axList1.EndUpdate();

The following VFP sample displays a header bar using multiple lines:

with thisform.List1
	.BeginUpdate()
	.HeaderVisible = .t.
	.HeaderHeight = 32
	with .Columns.Add("Column 1")
		.HTMLCaption = "Line1<br>Line2"
	endwith
	with .Columns.Add("Column 2")
		.HTMLCaption = "Line1<br>Line2"
	endwith
	.EndUpdate()
endwith