
## copyStylesFromTemplate(template) {#string}

Copies styles from the specified template to a document.


```js
copyStylesFromTemplate(template: string)
```

| Parameter | Type | Description |
| --- | --- | --- |
| template | string |  |

### 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.


## copyStylesFromTemplate(template) {#document}

Copies styles from the specified template to a document.


```js
copyStylesFromTemplate(template: Aspose.Words.Document)
```

| Parameter | Type | Description |
| --- | --- | --- |
| template | [Document](../) |  |

### 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.


## See Also

* module [Aspose.Words](../../)
* class [Document](../)

