RichTextBox: Adding bookmarks with the same name programmatically always returns the first one
Adding bookmarks with the same name programmatically always returns the first one in case use attempts to navigate to it using the Bookmarks dialog.
Workaround: Remove the bookmark before adding a new one with the very same name.
Posted on:20 Jun 2019 08:23
In the reported case, InsertInline is used to insert the bookmarks. It is the most basic level API for adding an inline element to the document so it does not track that the inserted inline is a bookmark and that there is a duplicate bookmark. InsertBookmark should be used instead. It will guarantee more consistent behavior and also better compatibility with the other features with RadRichTextBox.