views:

57

answers:

0

Hi.

I'm using C# 3.0 and I have following FlowDocument:

var doc = new FlowDocument();
var p = new Paragraph();
p.Inlines.Add(new Run("Hello 777 world 777"));
doc.Blocks.Add(p);

How can I wrap all "777" substrings with Hyperlink programmaly? I need to get a document, where all "777" were hyperlinks.