2 overrides of GetCharIndexFromPosition
System.Windows.Forms (2)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2216public override int GetCharIndexFromPosition(Point pt)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1638public override int GetCharIndexFromPosition(Point pt)
13 references to GetCharIndexFromPosition
System.Windows.Forms (6)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1645index = base.GetCharIndexFromPosition(pt);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1541int index = GetCharIndexFromPosition(pt);
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (3)
132int start = Owner.GetCharIndexFromPosition(clientLocation); 388visibleStart = Owner.GetCharIndexFromPosition(ptStart); 390visibleEnd = Owner.GetCharIndexFromPosition(ptEnd) + 1;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
442public int GetCharIndexFromPosition(Point pt) { return TextBox.GetCharIndexFromPosition(pt); }
System.Windows.Forms.Tests (7)
TextBoxBaseTests.cs (7)
4369Assert.Equal(0, control.GetCharIndexFromPosition(pt)); 4381int index = control.GetCharIndexFromPosition(new Point(10, 2)); 4402Assert.Equal(expected, control.GetCharIndexFromPosition(pt)); 4419Assert.Equal(0, control.GetCharIndexFromPosition(pt)); 4441int index = control.GetCharIndexFromPosition(new Point(10, 2)); 4465Assert.Equal(expected, control.GetCharIndexFromPosition(pt)); 4500Assert.Equal(expected, control.GetCharIndexFromPosition(new Point(1, 2)));