2
<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)
{
}
段落在集合中,b是段落類型,但我不知道如何從中讀取值。沒有任何文本屬性或innerHTML屬性。如何以編程方式從richtexteditor讀取段落值?