.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

OfficeImage.GetExtension(OfficeImageFormat) Method

Static method used to obtain an extension by the OfficeImageFormat value.

Namespace: DevExpress.Office.Utils

Assembly: DevExpress.Office.v21.1.Core.dll


public static string GetExtension(
    OfficeImageFormat imageFormat


Name Type Description
imageFormat OfficeImageFormat

An OfficeImageFormat enumeration member specifying the image format.


Type Description

A string specifying a file extension for a given image format.


The GetExtension method enables you to obtain the standard extension associated with a given XtraRichEdit image format. For example, the OfficeImageFormat.Jpeg corresponds to the “jpg” file extension.

This method can be helpful in creating URI in custom export procedures.

See Also