BookmarkOptions.AllowNameResolution Property
OBSOLETE
Use ConflictNameResolution instead.
Gets or sets whether duplicate bookmark names are automatically replaced with auto-generated unique names.
Namespace: DevExpress.XtraRichEdit
Assembly: DevExpress.RichEdit.v20.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
NuGet Packages: DevExpress.RichEdit.Core, DevExpress.WindowsDesktop.RichEdit.Core
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | **false** | True, to automatically replace duplicate names; otherwise, false. |
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to AllowNameResolution |
---|---|---|
WinForms Controls | SnapControlOptions |
|
RichEditControlOptions |
|
|
WPF Controls | RichEditControlOptions |
|
Office File API | RichEditControlOptionsBase |
|
Remarks
Duplicate bookmark names may inadvertently appear in the document in the following operations:
- Copying and pasting a range containing a bookmark.
- The use of the SubDocument.AppendDocumentContent or the SubDocument.InsertDocumentContent methods to add a document containing bookmark with the same name as bookmark in the current document.
- Mail Merge and Snap Mail Merge.
Since duplicate names are not allowed, they should be removed or renamed. If the AllowNameResolution is set to true, a duplicate name is automatically replaced with a unique name generated by adding an underscore and an ordinal number to the original bookmark name. If the AllowNameResolution is false, the duplicate bookmark is simply removed.