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
Syntaxpublic enum HtmlFixedPageHorizontalAlignment
Public Enumeration HtmlFixedPageHorizontalAlignment
public enum class HtmlFixedPageHorizontalAlignment
type HtmlFixedPageHorizontalAlignment
Members|
| Member name | Value | Description |
|---|
| Left | 0 |
Align pages to the left.
|
| Center | 1 |
Center pages. This is the default value.
|
| Right | 2 |
Align pages to the right.
|
ExamplesShows 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