views:

190

answers:

3

I would like the converse of RichTextBox.GetLineFromCharIndex()

I have a line number and I want to retrieve the char index for that line. The method might be called RichTextBox.GetCharIndexFromLine().

Is it possible, simply?

+3  A: 
richTextBox1.GetFirstCharIndexFromLine(int lineNumber)
najmeddine
+3  A: 

Yes, the method is RichTextBox.GetFirstCharIndexFromLine(LineNumber)

smoore
A: 

GetFirstCharIndexFromLine is not member of 'System.Windows.Forms.RichTextBox'

Andrew