You could modify the annotation's behavior by its properties - SkipPositionsInRange
and etc. More information about annotations you could read in this help article
and you could check the Custom Annotations
for further information about how they could be customized. However, this wouldn't change the selection UI behavior (whether a selection shall be drawn over such elements), since there isn't an out-of-the-box way to achieve this.
To restrict the operations within the Table (copying, deleting, editing), you could insert it between such a range. For example, the Table could be inside a ReadOnlyRange
or between other custom annotation ranges which disable the editing or copying of that Table.
The RadRichTextBox supports programmatic selection in addition to the one via the UI. You could read the Selection
help article for further information on that matter.
In addition, can you share with us what is the exact scenario you are trying to achieve by restricting the selection of document elements? What you are trying to prevent in this way - to edit their content, to delete them or just not to render a UI over it them?
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer
and share your thoughts.