Skip to main content
All docs
V19.1

ImageCollection.GetImageListImageSize(Object, Int32) Method

Returns the size of the image at the specified position in the image list.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v19.1.dll

Declaration

public static Size GetImageListImageSize(
    object images,
    int index
)

Parameters

Name Type Description
images Object

An object that represents the source of images.

index Int32

The index of the required image in the images list.

Returns

Type Description
Size

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

Remarks

If the specified image source is not a ImageList object, or the specified index is out of range, the GetImageListImageSize method returns Size.Empty.

See Also