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