Skip to main content

DPIAwareImageCollection.GetImage(String) Method

Returns the image stored within this DPIAwareImageCollection.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v24.1.dll

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

Declaration

public Image GetImage(
    string imageKey
)

Parameters

Name Type Description
imageKey String

A String value that specifies the image name.

Returns

Type Description
Image

An Image stored within this DPIAwareImageCollection.

Remarks

You can also retrieve images directly through the collection’s DPIAwareImageCollection.Images property.

barButtonItem1.ImageOptions.LargeImage = dpiAwareImageCollection1.Images[1].ImageInfo.Image;
See Also