NtHeaderControl.Init Method

Initializes the Header Control: Attaches this NtHeaderControl to the NtTimeChartControl ntTimeChartControl, sets the fonts for the columns and the supercolumns and determines if the supercolumns shall be below of the comuns or on top.
 
The difference between the topDown being false or true is described in the image below. The default is false as shown on the left side:


Normaly you will opt for the version on the left when placing the control on top of the NtTimeChartControl and for the right version when placing it to the bottom.

Overload List:

Modifier / Return Value Name and Parameters Description

public void

Init ( NtTimeChartControl ntTimeChartControl, Font colFont, Font superColFont, bool topDown )

Initializes the Header Control. This links the NtHeaderControl to the NtTimeChartControl given as a parameter.

Return value:

void

Parameters:

NtTimeChartControl ntTimeChartControl
The NtTimeChartControl you want this Header Control to connect with. The process of connecting is done automatically by this Init() method. As a result both the controls follow each other on horizontal scrolling and time scale factor changes. Ony one NtHeaderControl can be attached to a NtTimeChartControl.

Font colFont
The font used to draw the column header text.

Font superColFont
The font used to draw the text of the supercolumns. The supercolumns are the wider columns that cover several columns and indicate the day, when the columns indicate the hour etc.

bool topDown
Determines the relation of columns and supercolumns within the Header Control as desribed above.

Remarks:

None.