Back to Devexpress

DXRichEditBookmarkOptions.ConflictNameResolution Property

wpf-devexpress-dot-xpf-dot-richedit-dot-dxricheditbookmarkoptions.md

latest3.1 KB
Original Source

DXRichEditBookmarkOptions.ConflictNameResolution Property

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. This is a dependency property.

Namespace : DevExpress.Xpf.RichEdit

Assembly : DevExpress.Xpf.RichEdit.v25.2.dll

NuGet Package : DevExpress.Wpf.RichEdit

Declaration

csharp
public ConflictNameAction ConflictNameResolution { get; set; }
vb
Public Property ConflictNameResolution As ConflictNameAction

Property Value

TypeDescription
ConflictNameAction

A ConflictNameAction enumeration member that identifies an action.

|

Available values:

NameDescription
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.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ConflictNameResolution
RichEditControl

.BookmarkOptions .ConflictNameResolution

|

Remarks

Use the ConflictNameResolution property to deal with a situation when a document range with a bookmark is inserted in another document containing a Bookmark with the same name. This conflict may occur in copy-paste operations (PasteSelectionCommand), in the SubDocument.InsertDocumentContent and SubDocument.AppendDocumentContent methods.

See Also

Rich Text Editor Visual Elements

Hyperlinks and Bookmarks in Rich Text Documents

DXRichEditBookmarkOptions Class

DXRichEditBookmarkOptions Members

DevExpress.Xpf.RichEdit Namespace