'Usage
Dim instance As CustomIconContainer Dim name As String Dim icon As Icon Dim value As Integer value = instance.AddIcon(name, icon)
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.