Type | Description | |||
Long | A long expression that indicates the height of the control's header bar. |
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