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