[]
An IIcon identifies one icon contained in an IIconSet. Use this interface to work with a specific icon in a built-in icon set, such as retrieving its position with getIndex() or accessing its parent icon set with getParent().
IIconSet iconSet = workbook.getIconSets().get(IconSetType.Icon3TrafficLights1);
IIcon icon = iconSet.get(2);
int index = icon.getIndex();
IIconSet parent = icon.getParent();
IIcon within its parent IIconSet. Use this property to identify the position of the icon within its parent IIconSet.
IIconSet iconSet = workbook.getIconSets().get(IconSetType.Icon3TrafficLights1);
IIcon icon = iconSet.get(2);
int index = icon.getIndex();
0 through getParent().getCount() - 1. Calling getParent().get(getIndex()) returns the corresponding icon.IIconSet. Returns the parent IIconSet that contains this icon in an icon set used by a conditional formatting rule.
IIcon icon = workbook.getIconSets().get(IconSetType.Icon3TrafficLights1).get(0);
IIconSet iconSet = icon.getParent();
IconSetType type = iconSet.getID();
IIconSet that contains this icon.