Skip to main content
A newer version of this page is available.
All docs
V18.2

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.v18.2.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