C# 获取textbox行数

当textbox为多行时,获取它的行数:
int count = this.txtMsgInfo.Lines.GetUpperBound(0);

posted @ 2014-05-22 19:23  pnljs  阅读(6499)  评论(0编辑  收藏  举报