HtmlFixedSaveOptionsPageMargins Property |
Specifies the margins around pages in an HTML document.
The margins value is measured in points and should be equal to or greater than 0.
Default value is 10 points.
Namespace:
Aspose.Words.Saving
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic double PageMargins { get; set; }
Public Property PageMargins As Double
Get
Set
public:
property double PageMargins {
double get ();
void set (double value);
}
member PageMargins : float with get, set
Property Value
Type:
Double
RemarksDepends on the value of PageHorizontalAlignment property:
-
Defines top, bottom and left page margins if the value is Left.
-
Defines top, bottom and right page margins if the value is Right.
-
Defines top and bottom page margins if the value is Center.
ExamplesShows how to set the margins around pages in HTML file.
Document doc = new Document(MyDir + "Bookmarks.docx");
HtmlFixedSaveOptions saveOptions = new HtmlFixedSaveOptions
{
PageMargins = 10
};
doc.Save(ArtifactsDir + "HtmlFixedSaveOptions.PageMargins.html", saveOptions);
See Also