2 overrides of GetLineFromCharIndex
System.Windows.Forms (2)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2255public override int GetLineFromCharIndex(int index)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1725public override int GetLineFromCharIndex(int index)
9 references to GetLineFromCharIndex
System.Windows.Forms (3)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1659int selStartLine = GetLineFromCharIndex(selStart);
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
296? Owner.GetLineFromCharIndex(charIndex)
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
445public int GetLineFromCharIndex(int index) { return TextBox.GetLineFromCharIndex(index); }
System.Windows.Forms.Tests (6)
TextBoxBaseTests.cs (6)
4723Assert.Equal(0, control.GetLineFromCharIndex(index)); 4740Assert.Equal(0, control.GetLineFromCharIndex(index)); 4759Assert.Equal(0, control.GetLineFromCharIndex(index)); 4786Assert.Equal(0, control.GetLineFromCharIndex(index)); 4812Assert.Equal(expected, control.GetLineFromCharIndex(1)); 7806int actualLine = textBoxBase.GetLineFromCharIndex(charIndex);