All docs
V20.1
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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.v20.1.dll

Declaration

public static Size GetImageListImageSize(
    object images,
    int index,
    float? scaleFactor = default(float? )
)
Public Shared Function GetImageListImageSize(
    images As Object,
    index As Integer,
    scaleFactor As Single? = Nothing
) As Size

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