Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxSpreadSheetConditionalFormattingIconSetPresets.Add(string,string,Integer[]) Method

Creates a new icon preset and appends it to the collection.

#Declaration

Delphi
function Add(const AName: string; const ADescription: string; AIndexes: array of Integer): Integer;

#Parameters

Name Type
AName string
ADescription string
AIndexes Integer

#Returns

Type
Integer

#Remarks

Call this function to create a custom icon preset from the predefined image list accessible via the global conditional formatting icon storage‘s Icons property. The Add function creates a preset from icons whose indexes within the source list are passed as the AIndexes parameter and returns the preset’s index within the collection. To assign a descriptive name and internal identifier to a newly created preset, use the ADescription and AName parameters whose values initialize the preset’s Description and Name properties, respectively.

The global conditional formatting icon storage’s constructor calls the Add function internally to populate the collection with predefined icon presets.

See Also