Share via


Imagelist.height Method

Definition

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

public:
 virtual int height();
public virtual int height ();
abstract member height : unit -> int
override this.height : unit -> int
Public Overridable Function height () As Integer

Returns

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.

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 the height of images in the list.

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

Applies to