[]
This collection is available through Workbook.getIconSets() and can be used to retrieve built-in icon sets for icon set conditional formatting and icon-based filtering.
IIconSets iconSets = workbook.getIconSets();
IIconSetCondition condition = worksheet.getRange("A1:A5").getFormatConditions().addIconSetCondition();
IIconSet iconSet = iconSets.get(IconSetType.Icon3Symbols);
condition.setIconSet(iconSet);
get(IconSetType Index) intgetCount()This method returns the size of the IIconSets collection that can be accessed through Workbook.getIconSets().
int iconSetCount = workbook.getIconSets().getCount();
Use this method to retrieve a predefined IIconSet and apply it to an icon set conditional formatting rule through IIconSetCondition.setIconSet(IIconSet).
IIconSetCondition condition = worksheet.getRange("A1:A5").getFormatConditions().addIconSetCondition();
IIconSet iconSet = workbook.getIconSets().get(IconSetType.Icon3Symbols);
condition.setIconSet(iconSet);
Index - The IconSetType that specifies which icon set to retrieve.IIconSet that matches the specified icon set type.