Skip to main content

Create(string,Integer[]) Constructor

Creates a new icon preset.

Declaration

constructor Create(const AName: string; AIndexes: array of Integer); overload;

Parameters

Name Type Description
AName string

An icon preset’s name.

AIndexes Integer

A list of icon indexes.

Remarks

This constructor supports the internal infrastructure and is not intended to be used directly from your code. To create new icon presets, call the global conditional formatting icon storage‘s Presets.Add function.

The first overloaded Create constructor variant creates an empty list of icon indexes and initializes the Name property to the AName parameter value. The second constructor variant calls the first variant passing AName as the parameter, and populates the list of icon indexes with values passed as the AIndexes parameter.

The icon preset collection‘s Add function calls the second overloaded constructor variant to create a new preset that includes the specified array of global icon indexes.

See Also