Share via


Imagelist.count Method

Retrieves the number of images in an image list.

Syntax

public int count()

Run On

Client

Return Value

Type: int
An integer that represents the number of images in the list.

Examples

The following example creates an image list, loads icons from the shell.dll file, and then prints the number of images in the list.

Imagelist list; 
int       counter; 
  
list = new Imagelist( 
   Imagelist::iconWidth(), 
   Imagelist::iconHeight() ); 
  
list.loadIcons('shell32.dll'); 
print list.count(); 
pause;

See Also

Reference

Imagelist Class