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

ExportImageSize Enum

Lists options which specify how the image height and width are preserved in an exported HTML file.

Namespace: DevExpress.XtraRichEdit.Export.Html

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

NuGet Package: DevExpress.RichEdit.Core

#Declaration

[ComVisible(true)]
public enum ExportImageSize

#Members

Name Description
Auto

Default behavior.

Always

Always specify an image size identical to the size of an image in the document layout.

#Related API Members

The following properties accept/return ExportImageSize values:

Library Related API Members
WPF Controls DXRichEditHtmlDocumentExporterOptions.ExportImageSize
DXRichEditMhtDocumentExporterOptions.ExportImageSize
Office File API HtmlDocumentExporterOptions.ExportImageSize

#Remarks

If the image size in the Rich Edit document (DocumentImage.Size) is not the same as the size of the original image (DocumentImage.OriginalSize) because the image has been resized, you can save current image dimensions as image attributes in the exported HTML file. To do so, set the HtmlDocumentExporterOptions.ExportImageSize option to the ExportImageSize.Always value.

See Also