Table of Contents

Enum StyleConflictResolution

Namespace
DocWright.Dom.Editing
Assembly
DocWright.Dom.dll

What happens when a style id exists in both documents being merged.

public enum StyleConflictResolution

Fields

UseDestination = 0

The destination's definition wins: the source's is not imported and its content is re-pointed at the destination's style. Imported content picks up the destination's look, which is what "paste into this document" normally means.

KeepSource = 1

The source's definition is imported under a fresh id and its content is re-pointed at that. Imported content keeps the look it had, at the cost of a second style with a similar name.