我有一个文本区域和一个函数来做语法高亮。现在它读取整个RichTextBox。我将如何获得包含当前行的字符串变量?以下是我目前拥有的代码。 Private Sub HighLight()
Dim rm As System.Text.RegularExpressions.MatchCollection
Dim m As System.Text.RegularExpressions
如果将一行文本换行到另一行,我如何通过编程方式确定该字符串中断点的位置。 示例:输入字符串=“这是一个包装文本行的测试”。 Based on the width of the richTextBox it could display:
This is a test of a wrapped line of
text.
我需要确定的是在被包裹的单词的行中偏移。在