日期:2014-05-18  浏览次数:20777 次

向 RichTextBox 头追加字符串 ???
RichTextBox 里面有文本,我想 在 RichTextBox 头,追加文本,怎么写?

------解决方案--------------------
C# code

        private void AppendTextFront(string text)
        {
            richTextBox1.Select(0, 0);
            richTextBox1.SelectedText = text;
        }

------解决方案--------------------
探讨

C# code

private void AppendTextFront(string text)
{
richTextBox1.Select(0, 0);
richTextBox1.SelectedText = text;
}