如何在RichTextBox中自动选择单词? [英] How do you auto select words in a richtextbox?

查看:90
本文介绍了如何在RichTextBox中自动选择单词?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我有一个Richtexbox,其中包含一些文本和一个计时器.我想让richtexbox从文本的开头开始并选择第一个单词,随着计时器的重置,将选择范围更改为下一个单词,依此类推,直到最后一个单词为止.有点像跳蛙,可以帮助孩子们阅读.

winforms

可视C#

感谢您的帮助,

Hi, I have a richtexbox with some text in it and a timer. I want to make the richtexbox start from the begining of the text and select the first word and as the timer resets change the selection to the next word and so forth until it is finished with the final word. Its kind of like leap frog to help children read.

winforms

visual C#

Thank you for your help,

推荐答案

一个非常快速的Google搜索打开了这篇文章:
A really quick google search turned up this article: Search and Highlight Text in RichTextBox[^]. Maybe you can get a starting point from here.


这篇关于如何在RichTextBox中自动选择单词?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆