Tech Off Post

Single Post Permalink

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

    spivonious said:

    If the current Block is a Paragraph, you could check it's Inlines property for any Hyperlink objects.


    I don't think FlowDocument is designed to be that interactive.

    If I remember correctly, HyperLinks will be part of the logical tree of FlowDocument, so a simple pre-order traversal over the logical tree starting from the FlowDocument down to the reaf element should do the trick.