I also am hoping to populate a text box with the URL of the selected Hyperlink. I think I am along the right path with this code, but I don't know how to complete it:
TextPointer position = RichTextBoxEditor.Selection.Start;
Inline parent = position.Parent as Inline;
foreach (Hyperlink hl in RichTextBoxEditor.Blocks.OfType<Hyperlink>())
{
}
Yes... you are in the right path. Never done before but if your cursor is inside an hyperlink this gives you the hyperlink: