鼠标选择太智能——得到的文本超出了我想要的范围
我有一个 RichTextBox。当我在文本框中选择单词时,实际选择的文本会跳转到包含我尚未将鼠标移过的其他字符。
当我的文本框中有 XML 时,这尤其令人烦恼。我尝试抓取开始标签,Windows(或 RichTextBox 控件)也会抓取前一个标签的右尖括号标签。
RichTextBox 控件或我的应用程序中是否有可以设置的设置来关闭这种过于智能的行为?
I have a RichTextBox. When I select words in the text box, the text actually selected jumps to include other characters that I have not moved the mouse over.
This is particularly annoying when I have XML in my text box. I try to grab the beginning tag, and Windows (or the RichTextBox control) also grabs the close angle-bracket tag from the previous tag.
Is there a setting on the RichTextBox control or in my application that I can set that will turn off this too-smart behavior?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
C# RichTextBox 选择问题中描述的“RichTextBox 选择问题”的解决方案也解决了我的问题。
我认为我提出的问题应该保留以帮助其他人找到正确的解决方案。
谢谢汉斯为我指出解决方案。
The solution to the "RichTextBox Selection problem" described in C# RichTextBox selection problem also solved my issue.
I think the question I asked should remain to help others find the correct solution.
Thanks, Hans for pointing me to the solution.