I use the following code to add Hyperlink to a RichTextBox. However, I don't want to let the user change the Hyperlink name, after inserting it. I want to make the Hyperlink non-editable. So when user tries to edit it, I want to delete the Hyperlink or convert it to plain text.
protected void AddHyperlink(string linkURL, string linkName) {
Paragraph para = new Paragraph();
Hyperlink link = new Hyperlink(new Run(""), rtb.CaretPosition);
link.IsEnabled = true;
link.Inlines.Add(linkName);
link.Tag = "supername";
link.NavigateUri = new Uri(linkURL);
link.RequestNavigate += Link_RequestNavigate;
link.TextDecorations = null;
}