Document Solutions for Word
GrapeCity.Documents.Word Assembly / GrapeCity.Documents.Word.Templates Namespace / DataTemplate Class
Properties Methods

In This Topic
    DataTemplate Class Members
    In This Topic

    The following tables list the members exposed by DataTemplate.

    Public Properties
     NameDescription
    Public Property Gets the collection of data sources associated with the current document's data templates.  
    Public Property Gets options controlling the behavior of the template processing engine.  
    Top
    Public Methods
     NameDescription
    Public MethodIterates over root items in DataSources, starting with a fresh copy of the document and processing templates separately for each root data item.

    The itemProcessed action is called as each data item is processed. This action can be used to save the current version of the document (containing data only from the current root data item).

    When this method completes, the document is restored to the original state (i.e. it will contain the original template tags rather than data values).

     
    Public Method Expands the template. The template will be processed and all missed tags added.  
    Public MethodProcesses templates in the document, iterating over root items in DataSources, and replacing template tags in the document with data.  
    Top
    See Also