Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.

_Document.CopyStylesFromTemplate Method

Copies styles from the specified template to a document.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

'Usage
Dim Template As String
Dim _Document1 As _Document
_Document1.CopyStylesFromTemplate(Template)

'Declaration
Sub CopyStylesFromTemplate( _
	<InAttribute()> ByVal Template As String _
)
public void CopyStylesFromTemplate(
	/*in*/System.String Template
);
function CopyStylesFromTemplate(
	 Template : String
);

Parameters

Template

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


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Anzeigen: