Click or drag to resize

DocumentModelImportT Method (T, Boolean, 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: 29.0.35.1031
Syntax
public T Import<T>(
	T sourceElement,
	bool importDescendants,
	bool useDestinationStyles
)
where T : Element

Parameters

sourceElement
Type: T
The source element.
importDescendants
Type: SystemBoolean
to import source element descendants; otherwise .
useDestinationStyles
Type: SystemBoolean
to use destination document (this DocumentModel instance) styles; otherwise to use source document styles.

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