API Documentation -> NtTimeChartControl -> InsertDataObjects

# NtTimeChartControl.InsertDataObjects Method

Inserts NtDataObjects to the NtTimeChartControl.
Before adding data objects to the NtTimeChartControl you should ensure that there are appropriate NtDisplayDefs for the data types of your objects. If you have not done this on initialization, you can do it any time later by calling SetNtDisplayDef(). And of course you should have set a NtPerspective to your Time Chart, that contains the data type ids of your objects in its NtRowPerspective entries, because otherwise your objects will not show up.

Overload List:

Modifier / Return Value | Name and Parameters | Description
--- | --- | ---
public void | InsertDataObjects ( List<NtDataObject> insertList ) | Inserts the data objects in the list to the Time Chart.

Return value:

void

Parameters:

List<NtDataObject>
A list of objects to be inserted.

Remarks:

If you want to exchange the full data set by another (meaning you want to remove all data elements and then insert a list of different data elements) it is better to do it with one call of SetData instead of first removing all data objects and then call InsertDataObjects. The reason is that SetData is able to reuse allocated memory as far as needed or useful.

See also:

SetData()
InsertDataObject()
DeleteDataObject()
DeleteDataObjects()

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