开发者

Selecting Word-Parts in C#

开发者 https://www.devze.com 2023-01-07 11:51 出处:网络
While collecting some training data for NLP, I discovered that it is impossible to select parts of 2 adjacent words in a RichTextBox.

While collecting some training data for NLP, I discovered that it is impossible to select parts of 2 adjacent words in a RichTextBox.

For example: you can not select "lect Me" from "Select Me" in a RichTextBox using mou开发者_StackOverflow中文版se..!!

However it can be done using SHIFT key

Is there a property to be able to select parts of adjacent words not the whole words? That would make it easy for a human annotator...

Thanks


RichTextBox has a property AutoWordSelection. When you set it to false, you get what you need.

Most probably, you will need to do it programmatically - for some reason changing it to false in Properties Tab did not help.

0

精彩评论

暂无评论...
验证码 换一张
取 消