Parameters
- name
- Name of the icon object
- icon
- The icon object
Return Value
An int32 value that specifies the index of the object in the container. Returns -1 if there is an icon with the same name already in the container; in this case, the new icon object is not added.