OfficeImage.GetContentType(OfficeImageFormat) Method
In This Article
Static method used to get the MIME content type 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 GetContentType(
OfficeImageFormat imageFormat
)
#Parameters
Name | Type | Description |
---|---|---|
image |
Office |
An Office |
#Returns
Type | Description |
---|---|
String | A string indicating the mime content type. |
#Remarks
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.
See Also