Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

OfficeImage.GetExtension(OfficeImageFormat) Method

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

Namespace: DevExpress.Office.Utils

Assembly: DevExpress.Office.v24.2.Core.dll

NuGet Package: DevExpress.Office.Core

#Declaration

[ComVisible(false)]
public static string GetExtension(
    OfficeImageFormat imageFormat
)

#Parameters

Name Type Description
imageFormat OfficeImageFormat

An OfficeImageFormat enumeration member specifying the image format.

#Returns

Type Description
String

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

#Remarks

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