[]
Iterates 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 void BatchProcess(Action itemProcessed, CultureInfo cultureInfo = null)
Public Sub BatchProcess(itemProcessed As Action, Optional cultureInfo As CultureInfo = Nothing)
Type | Name | Description |
---|---|---|
Action | itemProcessed | The action to be invoked after each root data item is processed. |
CultureInfo | cultureInfo | Culture used to format data values. If null, the current culture is used. |