Xceed Words for .NET v5.0 Documentation
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.


In This Topic
    ApplyTemplate(String,Boolean) Method
    In This Topic
    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