Retrieves the index of the first character of a given line.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
If the lineNum parameter is negative, returns 0. If the lineNum parameter exceeds the number of lines in the control, returns the first character index for the last line in the control.
returns the first character index of a physical line. The physical line is the displayed line, not the assigned line. The number of displayed lines can be greater than the number of assigned lines due to word wrap. For example, if you assign two long lines to a RichTextBox control and set Multiline and WordWrap to true, the two long assigned lines result in four physical (or displayed lines).