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.
|