DXImageHelper.GetImageUri(String, ImageSize, ImageType) Method
In This Article
Returns a Uri that defines the specified image’s location.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
#Declaration
public static Uri GetImageUri(
string id,
ImageSize imageSize,
ImageType imageType = ImageType.Colored
)
#Parameters
Name | Type | Description |
---|---|---|
id | String | An image identifier. |
image |
DevExpress. |
A predefined image size. |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
image |
DevExpress. |
Colored | A predefined image type. |
#Returns
Type | Description |
---|---|
Uri | A Uri object that contains a Uri to the image. |
#Remarks
See the example below.
var uri = DXImageHelper.GetImageUri("Chart", ImageSize.Size16x16, ImageType.Office2013);
Refer to the DevExpress Image Gallery topic to learn more.
See Also