Word.DocumentMergeOptions interface
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Provides configuration options for the Document.merge method.
Remarks
Properties
| add |
If provided, specifies whether to add the merged document to recent files. The default value is |
| detect |
If provided, specifies whether to detect format changes during the merge. The default value is |
| merge |
If provided, specifies the target of the merge operation. The default value is |
| use |
If provided, specifies the source of formatting to use in the merge. The default value is |
Property Details
addToRecentFiles
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies whether to add the merged document to recent files. The default value is true.
addToRecentFiles?: boolean;
Property Value
boolean
Remarks
detectFormatChanges
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies whether to detect format changes during the merge. The default value is true.
detectFormatChanges?: boolean;
Property Value
boolean
Remarks
mergeTarget
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the target of the merge operation. The default value is current.
mergeTarget?: Word.MergeTarget | "Selected" | "Current" | "New";
Property Value
Word.MergeTarget | "Selected" | "Current" | "New"
Remarks
useFormattingFrom
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the source of formatting to use in the merge. The default value is current.
useFormattingFrom?: Word.UseFormattingFrom | "Current" | "Selected" | "Prompt";
Property Value
Word.UseFormattingFrom | "Current" | "Selected" | "Prompt"