Share via


Imagelist.height Method

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

Syntax

public int height()

Run On

Client

Return Value

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

Remarks

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

Examples

The following example creates an image list and sets the height and width of the images to the dimensions that are specified by the iconWidth and iconHeight methods. It then prints out the height of images in the list.

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

See Also

Imagelist Class

Imagelist.width Method