Tech Off Post

Single Post Permalink

View Thread: WPF: Find elements of specific type in FlowDocument
  • User profile image
    Bas

    I'm trying to gather all hyperlinks from a RichTextBox in WPF, but the whole FlowDocument class is an enigma. I can find ways to find elements by name and resources by key, but I can't find any way to simply return a collection of all HyperLink comments in the document, or even in each of the document's Blocks. Is there a way to do this?