Click or drag to resize
DocumentModelImportT Method (T, Boolean)
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.1255
Syntax
public T Import<T>(
	T sourceElement,
	bool importDescendants
)
where T : Element

Parameters

sourceElement
Type: T
The source element.
importDescendants
Type: SystemBoolean
to import source element descendants; otherwise .

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