Skip to main content
All docs
V25.1
  • 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.v25.1.dll

    NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

    Declaration

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

    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 System.Drawing.Size.Empty.

    See Also