officefileapi-devexpress-dot-xtrarichedit-dot-bookmarkoptions.md
Specifies an action that will be performed after inserting a document range if that range contains a bookmark with the same name as one in the current document.
Namespace : DevExpress.XtraRichEdit
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
[DefaultValue(ConflictNameAction.Keep)]
[XtraSerializableProperty]
public virtual ConflictNameAction ConflictNameResolution { get; set; }
<DefaultValue(ConflictNameAction.Keep)>
<XtraSerializableProperty>
Public Overridable Property ConflictNameResolution As ConflictNameAction
| Type | Default | Description |
|---|---|---|
| ConflictNameAction | Keep |
A ConflictNameAction enumeration member that identifies an action.
|
Available values:
| Name | Description |
|---|---|
| Keep |
Keep bookmarks with the same name providing different internal names to distinguish them.
| | Rename |
Append the underscore and a number to the name of the bookmark being inserted if the target document already contains a bookmark with the same name.
| | Skip |
Do not create a bookmark if the target document contains a bookmark with the same name as the bookmark being inserted.
|
You can access this nested property as listed below:
| Object Type | Path to ConflictNameResolution |
|---|---|
| RichEditControlOptionsBase |
.Bookmarks .ConflictNameResolution
|
The ConflictNameResolution specifies how to deal with conflicting bookmark names when a document containing a bookmark is inserted in another document containing a Bookmark with the same name. This situation may happen in copy-paste operations (PasteSelectionCommand), in the SubDocument.InsertDocumentContent and SubDocument.AppendDocumentContent methods.
See Also
Hyperlinks and Bookmarks in Rich Text Documents