ImageHeight, ImageWidth Properties

       

Syntax

object.ImageHeight

object.ImageWidth

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Remarks

Both height and width are measured in pixels.

Before any ListImage objects have been added to the control, you can set both ImageHeight and ImageWidth properties. However, once a ListImage object has been added, the properties cannot be changed.

Important   When the ImageList control is bound to another Windows Common Control, all images in the ListImages collection ù no matter what their size ù will be displayed in the second (bound control) at the size specified by the ImageHeight and ImageWidth properties.

Note   You can the use the ImageList control with any control by setting the Picture property of the second control to the Picture object of any image contained by the ImageList control. However, the size of the displayed image will not be affected by the ImageHeight and ImageWidth properties. In other words, the second control will display the image at its original size.