Share via


Imagelist.width Method

Retrieves the width of the images in the image list in pixels.

Syntax

public int width()

Run On

Client

Return Value

Type: int
An integer that represents the width of the images in pixels.

Remarks

The width of the images in the list is set when you instantiate the list.

Examples

The following example creates an image list that has the standard height and width for icons, and then prints out the width of images in the list.

Imagelist list; 
  
list = new Imagelist( 
    Imagelist::iconWidth(), 
    Imagelist::iconHeight()); 
  
print list.width();   
pause; 

See Also

Imagelist Class

Imagelist.height Method