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