MarkForDeletion

Declaration: TSpecCollection.MarkForDeletion (ItemIdx: integer; DelMark: boolean): integer;
The method MarkForDeletion marks or unmarks the collection item having the index ItemIdx to be deleted. Setting the parameter DelMark to TRUE marks the corresponding item, setting DelMark to FALSE unmarks it. Please note that no actual deletion is taking place. You have to call DeleteMarkedItems to actually remove the marked items.

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