Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 在System.Windows.Forms.RichTextBox中,如何将行号转换为字符位置?_.net_Winforms_Richtextbox - Fatal编程技术网

.net 在System.Windows.Forms.RichTextBox中,如何将行号转换为字符位置?

.net 在System.Windows.Forms.RichTextBox中,如何将行号转换为字符位置?,.net,winforms,richtextbox,.net,Winforms,Richtextbox,我想要的是相反的 我有一个行号,我想检索该行的字符索引。 该方法可能被称为RichTextBox.GetCharIndexFromLine() 简单地说,这可能吗 是,方法是RichTextBox。GetFirstCharIndexFromLine(行号)是,方法是RichTextBox。GetFirstCharIndexFromLine(行号)该行索引的第一个字符?该行索引的第一个字符? richTextBox1.GetFirstCharIndexFromLine(int lineNumber

我想要的是相反的

我有一个行号,我想检索该行的字符索引。 该方法可能被称为
RichTextBox.GetCharIndexFromLine()


简单地说,这可能吗

是,方法是RichTextBox。GetFirstCharIndexFromLine(行号)

是,方法是RichTextBox。GetFirstCharIndexFromLine(行号)

该行索引的第一个字符?该行索引的第一个字符?
richTextBox1.GetFirstCharIndexFromLine(int lineNumber)