Xceed Words for .NET v3.0 Documentation
ApplyTemplate(String,Boolean) Method


Xceed.Document.NET Assembly > Xceed.Document.NET Namespace > Document Class > ApplyTemplate Method : ApplyTemplate(String,Boolean) Method
The path that leads to the template file.
Determines whether the template's text content will be copied into the target Document or not.
Applies a template by using a string that points to the template file and allows to copy the text content from that template into the target Document.
Syntax
'Declaration
 
Public Overloads Sub ApplyTemplate( _
   ByVal templateFilePath As String, _
   ByVal includeContent As Boolean _
) 
'Usage
 
Dim instance As Document
Dim templateFilePath As String
Dim includeContent As Boolean
 
instance.ApplyTemplate(templateFilePath, includeContent)
public void ApplyTemplate( 
   string templateFilePath,
   bool includeContent
)

Parameters

templateFilePath
The path that leads to the template file.
includeContent
Determines whether the template's text content will be copied into the target Document or not.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows, 11, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Document Class
Document Members
Overload List