P
Pete Griffint
Howdy!
I want to get the following in a Richtext control:
Paragraph 1....
Paragraph 2...
Obviously I want to do something like
rtb.SelectedText="Paragraph 1...";
rtb.SelectedText=<paragraph break>; (*)
rtb.<arrange indentation>;
rtb.SelectedText="Paragraph 2...";
but the trouble is the only way I can find to start a new paragraph is for
line (*) to be rtb.SelectedText="\n\n";
which rather defeats the object, as I don't want a blank line between the
paragraphs. How can I start a new paragraph, but only move the caret on to
the next line?
Thanks!
I want to get the following in a Richtext control:
Paragraph 1....
Paragraph 2...
Obviously I want to do something like
rtb.SelectedText="Paragraph 1...";
rtb.SelectedText=<paragraph break>; (*)
rtb.<arrange indentation>;
rtb.SelectedText="Paragraph 2...";
but the trouble is the only way I can find to start a new paragraph is for
line (*) to be rtb.SelectedText="\n\n";
which rather defeats the object, as I don't want a blank line between the
paragraphs. How can I start a new paragraph, but only move the caret on to
the next line?
Thanks!