In StringBuilder copied from richTextBox fast way to findout end of line ?
richTextBox rtb = new richTextBox();
StringBuilder stb = new StringBuilder();
stb.Append(rtb.Text);
In a foreach(char ch in stb.ToString()) statement I want to know if we have find end of line.
Any fast way to do this?
Could this be done without converting .ToString() by someway?
It's important for me to read the characters separately and insert or remove a specific number of continous spaces(not all) at the start of any line, rapidly.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Carlos SanchezRank #6,113 · 276 reputationPosted Jul 10, 2004, 7:41 AM EDT
itsme28 reputationPosted Jul 10, 2004, 9:48 AM EDT