<RichTextBox HorizontalAlignment="Left" Margin="21,92,0,0" Name="richTextBox1" VerticalAlignment="Top" Height="259" Width="357" >
<Paragraph>hello kitty!</Paragraph>
<Paragraph>hello world!</Paragraph>
<Paragraph>hello fb!</Paragraph>
</RichTextBox>
BlockCollection bc = richTextBox1.Blocks;
foreach (var b in bc)
{
}
The Paragraphs are in the collection and b are Paragraph type but I don’t know how to read the value from them. There aren’t any text property or innerHTML property.
You could use code like this to get values from the paragraphs.