4 references to NearestIndex
System.Windows.Forms.Tests (3)
System\Windows\Forms\ListViewInsertionMarkTests.cs (3)
565
Assert.True(insertionMark.
NearestIndex
(new Point(-10, -11)) >= -1);
582
Assert.True(insertionMark.
NearestIndex
(new Point(-10, -11)) >= -1);
602
Assert.Equal(result, insertionMark.
NearestIndex
(new Point(1, 2)));
WinFormsControlsTest (1)
ListViewTest.cs (1)
31
int index = listView1.InsertionMark.
NearestIndex
(pos);