views:

17

answers:

1

I've got a FlowDocument and assigned a name to one paragraph.

I want to edit the content of a paragraph (which is just one ordinary string btw.).

How to do this?

+1  A: 
var paragraph = new Paragraph();
paragraph.Inlines.Add(new Run(yourString));
flowDocument.Blocks.Add(paragraph);

HTH,
Kent

Kent Boogaart
OK and how can I change the content (String) of an Inline?
Hedge
flowDocument.Blocks is an enumerable collection, so you can use for example foreach statement to iterate over it.
CommanderZ
Thank you very much. That's it.Please also look at this question if you don't mind: http://stackoverflow.com/questions/3781109/flowdocument-replace-section
Hedge