AppendDocumentWithNewPage
Contents
[
Hide
]ImportFormatOptions.AppendDocumentWithNewPage property
Gets or sets a boolean value indicating whether to change a first imported section type to the NewPage forcibly when call AppendDocument.
The default value is true.
public bool AppendDocumentWithNewPage { get; set; }
Remarks
Please note that this option is only relevant for the AppendDocument method and has no effect on other import-related methods.
Examples
Shows how to preserve original section type.
Document dstDoc = new Document();
Document srcDoc = new Document();
srcDoc.FirstSection.PageSetup.SectionStart = SectionStart.Continuous;
ImportFormatOptions options = new ImportFormatOptions { AppendDocumentWithNewPage = false };
dstDoc.AppendDocument(srcDoc, ImportFormatMode.KeepSourceFormatting, options);
Assert.That(dstDoc.Sections[1].PageSetup.SectionStart, Is.EqualTo(SectionStart.Continuous));
See Also
- class ImportFormatOptions
- namespace Aspose.Words
- assembly Aspose.Words