[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.GcWordDocument.MergeDocuments

MergeDocuments Method

MergeDocuments(FormattingCopyStrategy, params GcWordDocument[])

Merges several source documents into a single new GcWordDocument.

Declaration
public static GcWordDocument MergeDocuments(FormattingCopyStrategy copyStrategy, params GcWordDocument[] mergedDocuments)
Public Shared Function MergeDocuments(copyStrategy As FormattingCopyStrategy, ParamArray mergedDocuments As GcWordDocument()) As GcWordDocument
Parameters
Type Name Description
FormattingCopyStrategy copyStrategy

Specifies how formatting of the source documents is handled.

GcWordDocument[] mergedDocuments

The source documents to merge.

Returns
Type Description
GcWordDocument

The newly created GcWordDocument consisting of the merged Body ranges of the source documents.

MergeDocuments(params (GcWordDocument, FormattingCopyStrategy)[])

Merges several source documents into a single new GcWordDocument.

Declaration
public static GcWordDocument MergeDocuments(params (GcWordDocument, FormattingCopyStrategy)[] mergedDocuments)
Public Shared Function MergeDocuments(ParamArray mergedDocuments As (GcWordDocument, FormattingCopyStrategy)()) As GcWordDocument
Parameters
Type Name Description
(GcWordDocument, FormattingCopyStrategy)[] mergedDocuments

An array of pairs of source documents and corresponding formatting copy strategies.

Returns
Type Description
GcWordDocument

The newly created GcWordDocument consisting of the merged Body ranges of the source documents.

MergeDocuments(params GcWordDocument[])

Merges several source documents into a single new GcWordDocument, using Copy to preserve formatting of the source documents.

Declaration
public static GcWordDocument MergeDocuments(params GcWordDocument[] mergedDocuments)
Public Shared Function MergeDocuments(ParamArray mergedDocuments As GcWordDocument()) As GcWordDocument
Parameters
Type Name Description
GcWordDocument[] mergedDocuments

The source documents to merge.

Returns
Type Description
GcWordDocument

The newly created GcWordDocument consisting of the merged Body ranges of the source documents.