43 references to InsertionMark
System.Windows.Forms (2)
System\Windows\Forms\Controls\ListView\ListView.cs (2)
4640if (Application.ComCtlSupportsVisualStyles && (InsertionMark.Index > 0)) 4642InsertionMark.UpdateListView();
System.Windows.Forms.Tests (40)
System\Windows\Forms\ListViewInsertionMarkTests.cs (37)
16ListViewInsertionMark insertionMark = control.InsertionMark; 26ListViewInsertionMark insertionMark = control.InsertionMark; 48ListViewInsertionMark insertionMark = control.InsertionMark; 90ListViewInsertionMark insertionMark = control.InsertionMark; 94control.InsertionMark.AppearsAfterItem = false; 106control.InsertionMark.AppearsAfterItem = true; 118control.InsertionMark.AppearsAfterItem = false; 140ListViewInsertionMark insertionMark = control.InsertionMark; 141control.InsertionMark.Color = Color.FromArgb(0x12, 0x34, 0x56, 0x78); 145control.InsertionMark.AppearsAfterItem = false; 157control.InsertionMark.AppearsAfterItem = true; 169control.InsertionMark.AppearsAfterItem = false; 186ListViewInsertionMark insertionMark = control.InsertionMark; 196ListViewInsertionMark insertionMark = control.InsertionMark; 227ListViewInsertionMark insertionMark = control.InsertionMark; 254ListViewInsertionMark insertionMark = control.InsertionMark; 283ListViewInsertionMark insertionMark = control.InsertionMark; 293ListViewInsertionMark insertionMark = control.InsertionMark; 315ListViewInsertionMark insertionMark = control.InsertionMark; 340ListViewInsertionMark insertionMark = control.InsertionMark; 366ListViewInsertionMark insertionMark = control.InsertionMark; 370control.InsertionMark.Color = Color.Empty; 382control.InsertionMark.Color = Color.FromArgb(0x12, 0x34, 0x56, 0x78); 399ListViewInsertionMark insertionMark = control.InsertionMark; 409ListViewInsertionMark insertionMark = control.InsertionMark; 434ListViewInsertionMark insertionMark = control.InsertionMark; 463ListViewInsertionMark insertionMark = control.InsertionMark; 467control.InsertionMark.Index = 0; 480control.InsertionMark.Index = -1; 492control.InsertionMark.Index = index; 517ListViewInsertionMark insertionMark = control.InsertionMark; 522control.InsertionMark.Index = 0; 535control.InsertionMark.Index = -1; 547control.InsertionMark.Index = index; 564ListViewInsertionMark insertionMark = control.InsertionMark; 573ListViewInsertionMark insertionMark = control.InsertionMark; 600ListViewInsertionMark insertionMark = control.InsertionMark;
System\Windows\Forms\ListViewTests.cs (3)
95Assert.NotNull(control.InsertionMark); 96Assert.Same(control.InsertionMark, control.InsertionMark);
WinFormsControlsTest (1)
ListViewTest.cs (1)
31int index = listView1.InsertionMark.NearestIndex(pos);