LayoutOptions Class
Wordize.Layout.LayoutOptions class. Holds the options that allow controlling the document layout process.
LayoutOptions class
Holds the options that allow controlling the document layout process.
public class LayoutOptions
Properties
Name | Description |
---|---|
CommentDisplayMode { get; set; } | Gets or sets the way comments are rendered. Default value is ShowInBalloons. |
ContinuousSectionPageNumberingRestart { get; set; } | Gets or sets the mode of behavior for computing page numbers when a continuous section restarts the page numbering. |
EnableTextShaping { get; set; } | Flag indicating whether to enable support for OpenType features using the HarfBuzz text shaping engine. Default value depends on value set in EnableTextShaping . |
IgnorePrinterMetrics { get; set; } | Gets or sets indication of whether the “Use printer metrics to lay out document” compatibility option is ignored. Default is true . |
KeepOriginalFontMetrics { get; set; } | Gets or sets an indication of whether the original font metrics should be used after font substitution. Default is false . |
RevisionOptions { get; } | Gets revision options. |
ShowHiddenText { get; set; } | Gets or sets indication of whether hidden text in the document is rendered. Default is false . |
ShowParagraphMarks { get; set; } | Gets or sets indication of whether paragraph marks are rendered. Default is false . |
Remarks
You do not create instances of this class directly. Use the LayoutOptions
property to access layout options for the document processing operation.
Examples
Shows how to configure layout options to hide comments when rendering a document.
ConverterContext context = new ConverterContext();
context.LayoutOptions.CommentDisplayMode = Layout.CommentDisplayMode.Hide;
Converter.Create(context)
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "LayoutOptions.pdf")
.Execute();
See Also
- namespace Wordize.Layout
- assembly Wordize