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