C#滚动RichTextBox [英] C# scrolling of richtextbox
本文介绍了C#滚动RichTextBox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有一种方法可以使用代码自动将RichTextBox滚动到顶部? 谢谢!
Is there a method to scroll the richtextbox to the top automatically with codes? Thanks!
推荐答案
您的意思是底部?
instance.SelectionStart = instance.Text.Length;
instance.SelectionStart = instance.Text.Length;
或者我想顶部将是instance.SelectionStart = 0.
or i guess top would be instance.SelectionStart = 0.
这篇关于C#滚动RichTextBox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文