[]
An IIconSet identifies a built-in icon set by its IconSetType and provides access to the individual IIcon objects contained in that set. Use this interface with Workbook.getIconSets() to retrieve an icon set and apply it to an IIconSetCondition.
IIconSet iconSet = workbook.getIconSets().get(IconSetType.Icon3TrafficLights1);
IconSetType iconSetType = iconSet.getID();
IIcon greenLight = iconSet.get(2);
get(int Index) intgetCount()getID()IconSetType enumeration value that identifies this icon set.Use this method to determine how many icons are available before retrieving individual icons from the set.
IIconSet iconSet = workbook.getIconSets().get(IconSetType.Icon3TrafficLights1);
int iconCount = iconSet.getCount();
for (int i = 0; i < iconCount; i++) {
IIcon icon = iconSet.get(i);
}
IconSetType enumeration value that identifies this icon set.Use this method to identify which built-in icon set is assigned to an icon set conditional formatting rule.
IIconSetCondition condition = worksheet.getRange("A1:A5").getFormatConditions().addIconSetCondition();
IIconSet iconSet = workbook.getIconSets().get(IconSetType.Icon3TrafficLights1);
condition.setIconSet(iconSet);
IconSetType iconSetType = condition.getIconSet().getID();
IconSetType value that identifies this icon set.Icons are ordered from the lowest-value icon at index 0 to the highest-value icon at index getCount() - 1.
IIconSet iconSet = workbook.getIconSets().get(IconSetType.Icon3TrafficLights1);
IIcon greenLight = iconSet.get(2);
Index - The zero-based index of the icon. The valid range is 0 through getCount() - 1. An index outside this range is invalid and can cause an IndexOutOfBoundsException when the icon is used.