Click or drag to resize
DocumentModelImportT Method (T, Boolean, ImportMapping)
Imports (clones) the specified source element to this DocumentModel instance so it can be inserted into document content.

Namespace: GemBox.Document
Assembly: GemBox.Document (in GemBox.Document.dll) Version: 25.3.30.1231
Syntax
public T Import<T>(
	T sourceElement,
	bool importDescendants,
	ImportMapping importMapping
)
where T : Element

Parameters

sourceElement
Type: T
The source element.
importDescendants
Type: SystemBoolean
to import source element descendants; otherwise .
importMapping
Type: GemBox.DocumentImportMapping
Mapping used to match source and destination document styles and other referenced objects.

Type Parameters

T
The Element type to import.

Return Value

Type: T
Imported (cloned) source element that can be inserted in this DocumentModel instance.
See Also