HtmlFixedSaveOptionsPageHorizontalAlignment Property

Specifies the horizontal alignment of pages in an HTML document. Default value is HtmlFixedHorizontalPageAlignment.Center.

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public HtmlFixedPageHorizontalAlignment PageHorizontalAlignment { get; set; }

Property Value

Type: HtmlFixedPageHorizontalAlignment
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