一行解決

    RichTextLine = Regex.Split(RichTextBox2.Text, "\n").Length

 

如果你要計算 Textbox 只要把RichTExtbox 改掉就好

相關文章