Click or drag to resize

HtmlFixedPageHorizontalAlignment Enumeration

Specifies the horizontal alignment for pages in output HTML document.

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public enum HtmlFixedPageHorizontalAlignment
Members
  Member nameValueDescription
Left0 Align pages to the left.
Center1 Center pages. This is the default value.
Right2 Align pages to the right.
Examples
Shows how to set the horizontal alignment of pages in HTML file.
Document doc = new Document(MyDir + "Bookmarks.docx");

HtmlFixedSaveOptions htmlFixedSaveOptions = new HtmlFixedSaveOptions
{
    PageHorizontalAlignment = HtmlFixedPageHorizontalAlignment.Left
};

doc.Save(ArtifactsDir + "HtmlFixedSaveOptions.HorizontalAlignment.html", htmlFixedSaveOptions);
See Also