Class Merger

Class Merger

Namespace: Aspose.Words.LowCode
Assembly: Aspose.Words.dll

表示一组方法,旨在将各种不同类型的文档合并为一个输出文档。

public static class Merger

继承

objectMerger

继承成员

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

备注

指定的输入和输出文件或流,以及所需的合并和保存选项,用于将给定的输入文档合并为一个输出文档。

合并功能支持超过35种不同的文件格式。

方法

Merge(string, string[])

使用指定的输入和输出文件名将给定的输入文档合并为一个输出文档。

public static void Merge(string outputFile, string[] inputFiles)

参数

outputFile string

输出文件名。

inputFiles string[]

输入文件名。

备注

默认情况下使用 Aspose.Words.LowCode.MergeFormatMode.KeepSourceFormatting。

Merge(string, string[], SaveFormat, MergeFormatMode)

使用指定的输入输出文件名和最终文档格式将给定的输入文档合并为一个输出文档。

public static void Merge(string outputFile, string[] inputFiles, SaveFormat saveFormat, MergeFormatMode mergeFormatMode)

参数

outputFile string

输出文件名。

inputFiles string[]

输入文件名。

saveFormat SaveFormat

保存格式。

mergeFormatMode MergeFormatMode

指定如何合并冲突的格式。

Merge(string, string[], SaveOptions, MergeFormatMode)

使用指定的输入输出文件名和保存选项将给定的输入文档合并为一个输出文档。

public static void Merge(string outputFile, string[] inputFiles, SaveOptions saveOptions, MergeFormatMode mergeFormatMode)

参数

outputFile string

输出文件名。

inputFiles string[]

输入文件名。

saveOptions SaveOptions

保存选项。

mergeFormatMode MergeFormatMode

指定如何合并冲突的格式。

Merge(string, string[], LoadOptions[], SaveOptions, MergeFormatMode)

使用指定的输入输出文件名和保存选项将给定的输入文档合并为一个输出文档。

public static void Merge(string outputFile, string[] inputFiles, LoadOptions[] loadOptions, SaveOptions saveOptions, MergeFormatMode mergeFormatMode)

参数

outputFile string

输出文件名。

inputFiles string[]

输入文件名。

loadOptions LoadOptions[]

输入文件的加载选项。

saveOptions SaveOptions

保存选项。

mergeFormatMode MergeFormatMode

指定如何合并冲突的格式。

Merge(string[], MergeFormatMode)

将给定的输入文档合并为一个文档,并返回最终文档的 Aspose.Words.Document 实例。

public static Document Merge(string[] inputFiles, MergeFormatMode mergeFormatMode)

参数

inputFiles string[]

输入文件名。

mergeFormatMode MergeFormatMode

指定如何合并冲突的格式。

返回

Document

Merge(string[], LoadOptions[], MergeFormatMode)

将给定的输入文档合并为一个文档,并返回最终文档的 Aspose.Words.Document 实例。

public static Document Merge(string[] inputFiles, LoadOptions[] loadOptions, MergeFormatMode mergeFormatMode)

参数

inputFiles string[]

输入文件名。

loadOptions LoadOptions[]

输入文件的加载选项。

mergeFormatMode MergeFormatMode

指定如何合并冲突的格式。

返回

Document

Merge(Document[], MergeFormatMode)

将给定的输入文档合并为一个文档,并返回最终文档的 Aspose.Words.Document 实例。

public static Document Merge(Document[] inputDocuments, MergeFormatMode mergeFormatMode)

参数

inputDocuments Document[]

输入文档。

mergeFormatMode MergeFormatMode

指定如何合并冲突的格式。

返回

Document

Merge(Stream, Stream[], SaveFormat)

使用指定的输入输出流和最终文档格式将给定的输入文档合并为一个输出文档。

public static void Merge(Stream outputStream, Stream[] inputStreams, SaveFormat saveFormat)

参数

outputStream Stream

输出流。

inputStreams Stream[]

输入流。

saveFormat SaveFormat

保存格式。

Merge(Stream, Stream[], SaveOptions, MergeFormatMode)

使用指定的输入输出流和保存选项将给定的输入文档合并为一个输出文档。

public static void Merge(Stream outputStream, Stream[] inputStreams, SaveOptions saveOptions, MergeFormatMode mergeFormatMode)

参数

outputStream Stream

输出流。

inputStreams Stream[]

输入流。

saveOptions SaveOptions

保存选项。

mergeFormatMode MergeFormatMode

指定如何合并冲突的格式。

Merge(Stream, Stream[], LoadOptions[], SaveOptions, MergeFormatMode)

使用指定的输入输出流和保存选项将给定的输入文档合并为一个输出文档。

public static void Merge(Stream outputStream, Stream[] inputStreams, LoadOptions[] loadOptions, SaveOptions saveOptions, MergeFormatMode mergeFormatMode)

参数

outputStream Stream

输出流。

inputStreams Stream[]

输入流。

loadOptions LoadOptions[]

输入文件的加载选项。

saveOptions SaveOptions

保存选项。

mergeFormatMode MergeFormatMode

指定如何合并冲突的格式。

Merge(Stream[], MergeFormatMode)

将给定的输入文档合并为一个文档,并返回最终文档的 Aspose.Words.Document 实例。

public static Document Merge(Stream[] inputStreams, MergeFormatMode mergeFormatMode)

参数

inputStreams Stream[]

输入流。

mergeFormatMode MergeFormatMode

指定如何合并冲突的格式。

返回

Document

Merge(Stream[], LoadOptions[], MergeFormatMode)

将给定的输入文档合并为一个文档,并返回最终文档的 Aspose.Words.Document 实例。

public static Document Merge(Stream[] inputStreams, LoadOptions[] loadOptions, MergeFormatMode mergeFormatMode)

参数

inputStreams Stream[]

输入流。

loadOptions LoadOptions[]

输入文件的加载选项。

mergeFormatMode MergeFormatMode

指定如何合并冲突的格式。

返回

Document

 中文