Skip to main content
A newer version of this page is available. .

ImageCollection.GetImageListImageSize(Object, Int32, Nullable<Single>) Method

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

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v19.2.dll

Declaration

public static Size GetImageListImageSize(
    object images,
    int index,
    float? scaleFactor = default(float? )
)

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.

Optional Parameters

Name Type Default Description
scaleFactor Nullable<Single> *null*

An integer value that specifies a custom scale factor.

Returns

Type Description
Size

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

Remarks

The images parameter is an ImageList or ImageCollection object. If the images parameter is null (Nothing in VB) or the index parameter is out of range, the method returns Empty.

See Also