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