ApiExamples.ExHtmlFixedSaveOptions.PageMarginsException C# (CSharp) Метод

PageMarginsException() приватный Метод

private PageMarginsException ( ) : void
Результат 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);
        }