mergePastedLists property
ImportFormatOptions.mergePastedLists property
Gets or sets a boolean value that specifies whether pasted lists will be merged with surrounding lists.
The default value is false
.
get mergePastedLists(): boolean
Examples
Shows how to merge lists from a documents.
const srcDoc = new aw.Document(base.myDir + "List item.docx");
const dstDoc = new aw.Document(base.myDir + "List destination.docx");
const options = new aw.ImportFormatOptions();
options.mergePastedLists = true;
// Set the "MergePastedLists" property to "true" pasted lists will be merged with surrounding lists.
dstDoc.appendDocument(srcDoc, aw.ImportFormatMode.UseDestinationStyles, options);
dstDoc.save(base.artifactsDir + "Document.MergePastedLists.docx");
See Also
- module Aspose.Words
- class ImportFormatOptions