Document.CopyStylesFromTemplate Method (String)

 

Copies styles from the specified template to a document.

Namespace:   Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

void CopyStylesFromTemplate(
	string Template
)

Parameters

Template
Type: System.String

The template file name.

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.

Return to top
Show: