Base:
property
SelectionMode
System.Windows.Forms.ListBox.SelectionMode
3 writes to SelectionMode
System.Windows.Forms.Tests (3)
CheckedListBoxTests.cs (3)
98SelectionMode = expected 111ArgumentException ex = Assert.Throws<ArgumentException>(() => box.SelectionMode = expected); 119Assert.Throws<InvalidEnumArgumentException>("value", () => control.SelectionMode = value);
8 references to SelectionMode
System.Windows.Forms (7)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (7)
200if (value != SelectionMode) 581Color backColor = (SelectionMode != SelectionMode.None) ? e.BackColor : BackColor; 582Color foreColor = (SelectionMode != SelectionMode.None) ? e.ForeColor : ForeColor; 594if (SelectionMode != SelectionMode.None && (e.State & DrawItemState.Selected) == DrawItemState.Selected) 717Color backColor = (SelectionMode != SelectionMode.None) ? e.BackColor : BackColor; 728Color foreColor = (SelectionMode != SelectionMode.None) ? e.ForeColor : ForeColor; 777if (e.KeyChar == ' ' && SelectionMode != SelectionMode.None)
System.Windows.Forms.Tests (1)
CheckedListBoxTests.cs (1)
101Assert.Equal(expected, box.SelectionMode);