1 write to _selectionMode
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1004
_selectionMode
= value;
15 references to _selectionMode
System.Windows.Forms (15)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (14)
309
switch (
_selectionMode
)
810
return
_selectionMode
!= SelectionMode.None;
830
SelectionMode current = (_selectionModeChanging) ? _cachedSelectionMode :
_selectionMode
;
854
if (
_selectionMode
== SelectionMode.None)
859
if (
_selectionMode
== SelectionMode.One && value != -1)
995
return
_selectionMode
;
1001
if (
_selectionMode
!= value)
1013
_cachedSelectionMode =
_selectionMode
;
1635
Debug.Assert(
_selectionMode
!= SelectionMode.None, "Guard against setting selection for None selection mode outside this code.");
1637
if (
_selectionMode
== SelectionMode.One)
1663
switch (
_selectionMode
)
1784
if (
_selectionMode
!= SelectionMode.None)
1793
if (_selectedItems.Count > 0 &&
_selectionMode
== SelectionMode.One)
2149
if (
_selectionMode
== SelectionMode.None)
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedObjectCollection.cs (1)
38
SelectionMode current = _owner._selectionModeChanging ? _owner._cachedSelectionMode : _owner.
_selectionMode
;