ImageWidth Property (AImageList)

Returns or sets the width of image objects in the object.

Syntax

Object.ImageWidth [ = lImageWidth ]

The ImageWidth property syntax has the following parts:

 

Name

Type

Description

Object

AImageList

AImageList control

lImageWidth

Long

A string specifying the width of image objects in the object, in pixels.

Comments

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

Important: When the AImageList control is bound to another control, all images in the 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 AImageList control with any control by setting the Picture property of the second control to the Picture object of any image contained by the AImageList 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.

Example

The following statement sets the width of the AImageList object:

imgl1.ImageWidth=16

Applies to

AImageList

See Also

ImageHeight, MaskColor