officefileapi-devexpress-dot-xtrarichedit-dot-export-dot-html-84a74d73.md
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.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
[ComVisible(true)]
public enum ExportImageSize
<ComVisible(True)>
Public Enum ExportImageSize
| Name | Description |
|---|---|
Auto |
Default behavior.
|
| Always |
Always specify an image size identical to the size of an image in the document layout.
|
The following properties accept/return ExportImageSize values:
| Library | Related API Members |
|---|---|
| WPF Controls | DXRichEditHtmlDocumentExporterOptions.ExportImageSize |
| DXRichEditMhtDocumentExporterOptions.ExportImageSize | |
| Office File API | HtmlDocumentExporterOptions.ExportImageSize |
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