WinForm------TextEdit控件去掉换行符

//将换行转为空格
string str = this.DetailEdit.Text.Replace("
"," ");
原文地址:https://www.cnblogs.com/tianhengblogs/p/5843047.html