_Document.CopyStylesFromTemplate(String) Method

Definition

Copies styles from the specified template to a document.

C#
public void CopyStylesFromTemplate (string Template);

Parameters

Template
String

Required String. The template file name.

Remarks

When styles are copied from a template to a document, like-named styles in the document are redefined to match the style descriptions in the template. Unique styles from the template are copied to the document. Unique styles in the document remain intact.

Applies to

Product Versions
Word primary interop assembly Latest