积极答复者
怎么将richTextBox里面的字符分段

问题
答案
-
string[] strings=richTextBox1.Text.Split(newstring[]{"\n"},
StringSplitOptions.RemoveEmptyEntries); MessageBox.Show(strings[0]+"\n"+strings[1]);
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats- 已建议为答案 Jason Dot WangModerator 2013年4月12日 2:14
- 已标记为答案 Jason Dot WangModerator 2013年4月19日 8:59
全部回复
-
string[] strings=richTextBox1.Text.Split(newstring[]{"\n"},
StringSplitOptions.RemoveEmptyEntries); MessageBox.Show(strings[0]+"\n"+strings[1]);
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats- 已建议为答案 Jason Dot WangModerator 2013年4月12日 2:14
- 已标记为答案 Jason Dot WangModerator 2013年4月19日 8:59