API Documentation -> NtTimeChartControl -> SetDisplayDef

# NtTimeChartControl.SetDisplayDef Method

The NtTimeChartControl holds many data objects, each of them having a member dataTypeId that defines the type of the data object. The NtTimeChartControl shows all data of the same type in the same row and draws them in the same way (curve, bitmap, custom drawn, etc). The way how a certain type of data actually will be drawn is defined by a NtDisplayDef that is specifically stored for this data type within the NtTimeChartControl. In other words, before entering data, you should have set one NtDisplayDef per occuring data type. You do this by calling this method.

Overload List:

Modifier / Return Value | Name and Parameters | Description
--- | --- | ---
public void | SetDisplayDef ( NtDisplayDef displayDef ) | Sets a NtDisplayDef for use by this NtTimeChartControl.

Return value:

void

Parameters:

NtDisplayDef displayDef
The NtDisplayDef to set. As this contains a member dataTypeId it is very well known for which data type the NtDisplayDef shall be set so there is not additional parameter needed to specify the data type.

Remarks:

If a NtDisplayDef for the same data type was already set, that one will be overwritten, so you can use this method to change your settings. If you do so, please call Invalidate() or InvalidateRow() to make the changes visible.
In order to remove a NtDisplayDef from the Time Chart, call DeleteDisplayDef().

See also:

DeleteDisplayDef()
NtDisplayDef

Top API Documentation -> NtTimeChartControl -> SetDisplayDef © 2016 Bassaly