Xceed Words for .NET v5.2 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.
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also