ApiExamples.ExSavingCallback.PageFileNameSavingCallback C# (CSharp) Метод

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

private PageFileNameSavingCallback ( ) : void
Результат void
        public void PageFileNameSavingCallback()
        {
            Document doc = new Document(MyDir + "Rendering.doc");

            HtmlFixedSaveOptions htmlFixedSaveOptions = new HtmlFixedSaveOptions { PageIndex = 0, PageCount = doc.PageCount };
            htmlFixedSaveOptions.PageSavingCallback = new CustomPageFileNamePageSavingCallback();

            doc.Save(MyDir + @"\Artifacts\out.html", htmlFixedSaveOptions);

            string[] filePaths = Directory.GetFiles(MyDir, "Page_*.html");

            for (int i = 0; i < doc.PageCount; i++)
            {
                string file = string.Format(MyDir + "Page_{0}.html", i);
                Assert.AreEqual(file, filePaths[i]);
            }
        }