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)
The target document.
sourceDocumentRadFlowDocumentThe source document.
conflictingStylesResolutionModeConflictingStylesResolutionModeThe 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
The document element from the source document which shall be imported to the target document.
Returns:T
The element to import.