Skip to main content

TdxSpreadSheetConditionalFormattingIconSetPresets.FindByCount(Integer,TdxSpreadSheetConditionalFormattingIconSetPreset) Method

Searches an icon preset consisting of the specified number of icons.

Declaration

function FindByCount(const ACount: Integer; out APreset: TdxSpreadSheetConditionalFormattingIconSetPreset): Boolean;

Parameters

Name Type Description
ACount Integer

The target number of icons.

APreset TdxSpreadSheetConditionalFormattingIconSetPreset

Returns the first found predefined icon set with the specified number of icons.

Returns

Type Description
Boolean

True if the search operation is successful; otherwise, False.

Remarks

Call this function to obtain the first found icon preset that includes the number of icons passed as the ACount parameter. The FindByCount function iterates through all icon presets within the collection comparing their IconIndexCount property values to the specified icon count. When the first match is found, the function returns True and the found icon preset as the APreset out parameter. If no presets within the collection contain the specified number of icons, the FindByCount function returns False.

To search a specific icon preset by the global index of its icon or the specified internal preset identifier, call the FindByIconIndex or FindByName function, respectively.

See Also