• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class NodeImporter

Copies document nodes between documents while remapping styles and lists.

Inheritance
object
NodeImporter
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public sealed class NodeImporter

Constructors

NodeImporter(Document, Document, ImportFormatMode)

Initializes a node importer for the specified source and destination documents.

Declaration
public NodeImporter(Document sourceDocument, Document destinationDocument, ImportFormatMode importFormatMode)
Parameters
Type Name Description
Document sourceDocument

The document that owns the source nodes.

Document destinationDocument

The document that will own imported nodes.

ImportFormatMode importFormatMode

The formatting policy for imported nodes.

Properties

DestinationDocument

Gets the document that owns imported nodes.

Declaration
public Document DestinationDocument { get; }
Property Value
Type Description
Document

ImportFormatMode

Gets the formatting policy used for imported nodes.

Declaration
public ImportFormatMode ImportFormatMode { get; }
Property Value
Type Description
ImportFormatMode

SourceDocument

Gets the document from which nodes are imported.

Declaration
public Document SourceDocument { get; }
Property Value
Type Description
Document

Methods

ImportNode(Node, bool)

Imports a detached copy of a node.

Declaration
public Node ImportNode(Node sourceNode, bool isImportChildren)
Parameters
Type Name Description
Node sourceNode

The source node to copy.

bool isImportChildren

Whether nested content should also be copied.

Returns
Type Description
Node

A node owned by the destination document's model.

Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX