MergeFormatMode Enum
Wordize.Merging.MergeFormatMode enum. Specifies how formatting is merged when combining multiple documents.
MergeFormatMode enumeration
Specifies how formatting is merged when combining multiple documents.
public enum MergeFormatMode
Values
Name | Value | Description |
---|---|---|
MergeFormatting | 0 | Combine the formatting of the merged documents. |
KeepSourceFormatting | 1 | Means that the source document will retain its original formatting, such as font styles, sizes, colors, indents, and any other formatting elements applied to its content. |
KeepSourceLayout | 2 | Preserve the layout of the original documents in the final document. |
Examples
Shows how to merge several document into one document with specified merge format mode.
string outputFileName = ArtifactsDir + "Merger.Merge.docx";
string[] inputFiles = new string[] { MyDir + "Merger.docx", MyDir + "Merger.doc", MyDir + "Merger.rtf" };
Merger.Merge(outputFileName, inputFiles, SaveFormat.Docx, MergeFormatMode.KeepSourceLayout);
See Also
- namespace Wordize.Merging
- assembly Wordize