CategProps

Declaration: TSpecCollection.CategProps [catix: integer]: TFeatMatProps;
The array property CategProps defines the properties of the categories of spectral collections. The parameter catix is the index of the category (valid range: 1...NumCategs). Each category is characterized by the following fields:

Field Explanation
FeatNum Each category has a user-defined category number which can be used to identify it. Please note that the category number must not mixed up with the category index.
FeatName Name of the category. The name of the category is restricted to a maximum of 20 characters.
FeatKind Type of the category. This property controls the type of the category: integer, double precision floating point numbers, tri-state values and strings are allowed (see TFeatKind for details).
Comment An arbitrary comment. Maximum length is 60 characters.
PresetValues Sometimes the range of allowed values of a category is restricted to a selection of predefined values. In this case you can define preset values and store them in the category properties.
Sorted This field indicates whether the preset values should be displayed in sorted order. Please note that this field is not used by the class, thus you may use it for other purposes as well.

Example: The following code snippet shows how to set the category properties of category 3 of the spectral collection "Spc":
var
  Spc         : TSpecCollection;
...
...
Spc.CategProps[3].Clear;  // set default values
Spc.CategProps[3].FeatNum := 412;
Spc.CategProps[3].FeatName := 'No.Apples';
Spc.CategProps[3].FeatKind := fkinteger;
...