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

NameValueDescription
MergeFormatting0Combine the formatting of the merged documents.
KeepSourceFormatting1Means 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.
KeepSourceLayout2Preserve 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