在System.Windows.Forms.RichTextBox中,如何从行号转换为字符位置?
-
07-07-2019 - |
题
我希望与 RichTextBox.GetLineFromCharIndex()
我有一个行号,我想检索该行的char索引。
该方法可能被称为 RichTextBox.GetCharIndexFromLine()
。
简单吗?
解决方案
richTextBox1.GetFirstCharIndexFromLine(int lineNumber)
其他提示
是的,方法是RichTextBox.GetFirstCharIndexFromLine(LineNumber)
不隶属于 StackOverflow