Imagelist.remove Method
Removes an image from an image list.
Syntax
public int remove(int imageIdx)
Run On
Client
Parameters
- imageIdx
Type: int
The position of the image that you want to remove in the list.
Return Value
Type: int
0 if the method was successful.
Examples
The following example creates an image list, adds the icons in shell32.dll file, and then deletes the fourth member of the list.
Imagelist list = new Imagelist(
Imagelist::iconWidth(),
Imagelist::iconHeight() );
list.loadIcons('shell32.dll');
print list.count();
list.remove(4);
print list.count();
pause;