HtmlElementSizeOutputMode Enum

Wordize.Saving.HtmlElementSizeOutputMode enum. Specifies how Wordize exports element widths and heights to HTML MHTML and EPUB.

HtmlElementSizeOutputMode enumeration

Specifies how Wordize exports element widths and heights to HTML, MHTML and EPUB.

public enum HtmlElementSizeOutputMode

Values

NameValueDescription
All0All element sizes, both in absolute and relative units, specified in the document are exported.
RelativeOnly1Element sizes are exported only if they are specified in relative units in the document. Fixed sizes are not exported in this mode. Visual agents will calculate missing sizes to make document layout more natural.
None2Element sizes are not exported. Visual agents will build layout automatically according to relationship between elements.

Examples

Shows how to specify table width mode while exporting document to HTML.

HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions();
htmlSaveOptions.TableWidthOutputMode = HtmlElementSizeOutputMode.None;

Converter.Create()
    .From(MyDir + "Simple.docx")
    .To(ArtifactsDir + "HtmlSaveOptions.TableWidthOutputMode.html", htmlSaveOptions)
    .Execute();

See Also