private void button1_Click(object sender, EventArgs e) { textBox2.Text = ""; string str = ""; foreach (string s2 in textBox1.Lines) { if(s2==""){ continue; } str += s2.Trim()+"\r\n"; } textBox2.Text = str; }
C# 去掉代码前边空格(格式化代码)
猜你喜欢
转载自www.cnblogs.com/enych/p/9295839.html
今日推荐
周排行