Xceed Words for .NET v5.0 Documentation
Xceed.Document.NET Assembly / Xceed.Document.NET Namespace / Document Class / ApplyTemplate Method / ApplyTemplate(Stream,Boolean) Method
The stream where the template file is stored.
Determines whether the template's text content will be copied into the target Document or not.


In This Topic
    ApplyTemplate(Stream,Boolean) Method
    In This Topic
    Applies a template by using a stream and allows to copy the text content from that template into the target Document.
    Syntax
    'Declaration
     
    Public Overloads Sub ApplyTemplate( _
       ByVal templateStream As Stream, _
       ByVal includeContent As Boolean _
    ) 
    'Usage
     
    Dim instance As Document
    Dim templateStream As Stream
    Dim includeContent As Boolean
     
    instance.ApplyTemplate(templateStream, includeContent)
    public void ApplyTemplate( 
       Stream templateStream,
       bool includeContent
    )

    Parameters

    templateStream
    The stream where the template file is stored.
    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