Represents a mapping of styles (and other referenced objects) from source document to destination document when importing elements between two different DocumentModel
GemBox.Document (in GemBox.Document.dll) Version: 188.8.131.526
public sealed class ImportMapping
Public NotInheritable Class ImportMapping
The ImportMapping type exposes the following members.
Initializes a new instance of the ImportMapping class.
Gets the destination document.
Gets the source document.
Gets a value indicating whether to use destination document styles if they have the same name as source document styles, even though they do not have the same formatting.
Same ImportMapping instance can be used for multiple imports.
This improves performances because matching styles (mapping from source document style to destination document style) do not have to be identified in subsequent imports if they where matched in previous imports.
It also reduces memory usage and provides more consistent behavior in some particular scenarios which involve importing list paragraphs, list styles and paragraph styles which contain list formatting.