Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GetLineFromCharIndex
- GetLineFromCharIndex
- this.WordWrap = false;
- int lineIndex = this.GetLineFromCharIndex(this.SelectionStart);
- string lineText = this.Lines[lineIndex];
- this.WordWrap = true;
- long lineNumber = textBox.Text.Substring(0, textBox.SelectionStart).LongCount(chr => chr == 'r');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement