Declaration: TSpecCollection.AddItem (Item: TSpCollItem): integer;
The function AddItem adds the collection item specified by the parameter Item to the spectral collection. The unique ItemId of the collection item is automatically assigned to the new entry.

The function returns the index of the newly added spectrum.

Hint: In order to access the spectral collection currently loaded in the Spectral Collection Editor you can use the pre-declared global variable SCData.