ApiExamples.ExHtmlFixedSaveOptions.PageMarginsException C# (CSharp) Method

PageMarginsException() private method

private PageMarginsException ( ) : void
return void
        public void PageMarginsException()
        {
            Document doc = new Document(MyDir + "Bookmark.doc");

            HtmlFixedSaveOptions saveOptions = new HtmlFixedSaveOptions();
            Assert.That(() => saveOptions.PageMargins = -1, Throws.TypeOf<ArgumentException>());

            doc.Save(MyDir + @"\Artifacts\HtmlFixedPageMargins.html", saveOptions);
        }