Type | Description | |||
Long | A long expression that indicates the height of the control's header bar. |
The following VB sample displays a header bar using multiple lines:
With G2antt1 .BeginUpdate .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:
#include "Columns.h" #include "Column.h" m_g2antt.BeginUpdate(); m_g2antt.SetHeaderHeight( 32 ); m_g2antt.SetHeaderVisible( TRUE ); CColumn column1( V_DISPATCH( &m_g2antt.GetColumns().Add( "Column 1" ) ) ); column1.SetHTMLCaption( "Line1<br>Line2" ); CColumn column2( V_DISPATCH( &m_g2antt.GetColumns().Add( "Column 2" ) ) ); column2.SetHTMLCaption( "Line1<br>Line2" ); m_g2antt.EndUpdate();
The following VB.NET sample displays a header bar using multiple lines:
With AxG2antt1 .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:
axG2antt1.BeginUpdate(); axG2antt1.HeaderVisible = true; axG2antt1.HeaderHeight = 32; EXG2ANTTLib.Column column1 = axG2antt1.Columns.Add("Column 1") as EXG2ANTTLib.Column ; column1.HTMLCaption = "Line1<br>Line2"; EXG2ANTTLib.Column column2 = axG2antt1.Columns.Add("Column 2") as EXG2ANTTLib.Column; column2.HTMLCaption = "Line1<br>Line2"; axG2antt1.EndUpdate();
The following VFP sample displays a header bar using multiple lines:
with thisform.G2antt1 .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