获取光标所在行索引

int index = richTextBox1.GetFirstCharIndexOfCurrentLine();
int line = richTextBox1.GetLineFromCharIndex(index);
posted @ 2018-11-29 15:50  Kyle0418  阅读(327)  评论(0编辑  收藏  举报