int start = richTextBox1.GetCharIndexFromPosition(new Point(0, 0)); int end = richTextBox1.GetCharIndexFromPosition(new Point(richTextBox1.ClientSize.Width, richTextBox1.ClientSize.Height-1)); var displayedText = richTextBox1.Text.Substring(start,end-start); MessageBox.Show(displayedText);
Created by colleague Dayong Wang 20150828
时间: 2024-11-10 01:18:48