New to Telerik Document Processing? Start a free 30-day trial

Imports document elements from one RadFlowDocument to another, merging styles and resolving conflicts.

Definition

Namespace:Telerik.Documents.Flow.Model

Assembly:Telerik.Windows.Documents.Flow.dll

Syntax:

C#
public class DocumentElementImporter

Inheritance: objectDocumentElementImporter

Constructors

Creates an importer that copies elements from the source document into the target document with the specified conflict resolution strategy.

C#
public DocumentElementImporter(RadFlowDocument targetDocument, RadFlowDocument sourceDocument, ConflictingStylesResolutionMode conflictingStylesResolutionMode)
Parameters:targetDocumentRadFlowDocument

The target document.

sourceDocumentRadFlowDocument

The source document.

conflictingStylesResolutionModeConflictingStylesResolutionMode

The conflicting styles resolution mode.

Methods

Imports the specified element from the source document into the target document, cloning it and adjusting cross-references.

C#
public T Import<T>(T sourceElement) where T : DocumentElementBase
Parameters:sourceElementT

The document element from the source document which shall be imported to the target document.

Returns:

T

The element to import.