ImageCollection.GetImageListSize(Image, Object, Int32) Method

Returns the size of the specified image or of an image in the image list addressed by a specific index.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v21.1.dll


public static Size GetImageListSize(
    Image image,
    object images,
    int index


Name Type Description
image Image

An image whose size is returned.

images Object

An object that represents the source of images. This parameter is in effect if the image parameter is set to null.

index Int32

The index of the required image in the images list.


Type Description

A Size value that specifies the size of a specific image.


If the image parameter is not null, the GetImageListSize method returns the size of this image. Otherwise, it returns the size of the image addressed by its index in the list specified by the images parameter. For the images parameter you can pass a ImageList or ImageCollection object.

See Also