HtmlSaveOptions.AllowNegativeIndent
HtmlSaveOptions AllowNegativeIndent property. Specifies whether negative left and right indents of paragraphs are normalized when saving to HTML MHTML or EPUB. Default value is false.
HtmlSaveOptions.AllowNegativeIndent property
Specifies whether negative left and right indents of paragraphs are normalized when saving to HTML, MHTML or EPUB. Default value is false
.
public bool AllowNegativeIndent { get; set; }
Remarks
When negative indent is not allowed, it is exported as zero margin to HTML. When negative indent is allowed, a paragraph might appear partially outside of the browser window.
Examples
Shows how to specify whether negative left and right indents of paragraphs are normalized when saving to HTML.
HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions();
htmlSaveOptions.AllowNegativeIndent = true;
Converter.Create()
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "HtmlSaveOptions.AllowNegativeIndent.html", htmlSaveOptions)
.Execute();
See Also
- class HtmlSaveOptions
- namespace Wordize.Saving
- assembly Wordize