Skip to main content

OfficeImage.GetContentType(OfficeImageFormat) Method

Static method used to get the MIME content type by the OfficeImageFormat value.

Namespace: DevExpress.Office.Utils

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

NuGet Packages: DevExpress.Office.Core, DevExpress.Win.Navigation


public static string GetContentType(
    OfficeImageFormat imageFormat


Name Type Description
imageFormat OfficeImageFormat

An OfficeImageFormat enumeration member specifying the image format.


Type Description

A string indicating the mime content type.


The GetContentType method enables you to obtain the standard MIME type associated with a given XtraRichEdit image format. For example, the OfficeImageFormat.Emf corresponds to the “application/x-msmetafile” MIME type.

This method can be helpful in constructing an HTML page markup.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetContentType(OfficeImageFormat) method.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also