21 references to None
System.Windows.Forms (21)
winforms\Managed\System\WinForms\CheckedListBox.cs (8)
302
if (!ClientUtils.IsEnumValid(value, (int)value, (int)SelectionMode.
None
, (int)SelectionMode.MultiExtended)){
306
&& value != SelectionMode.
None
) {
735
Color backColor = (SelectionMode != SelectionMode.
None
) ? e.BackColor : BackColor;
736
Color foreColor = (SelectionMode != SelectionMode.
None
) ? e.ForeColor : ForeColor;
744
if (SelectionMode != SelectionMode.
None
&& (e.State & DrawItemState.Selected) == DrawItemState.Selected) {
846
Color backColor = (SelectionMode != SelectionMode.
None
) ? e.BackColor : BackColor;
855
Color foreColor = (SelectionMode != SelectionMode.
None
) ? e.ForeColor : ForeColor;
911
if (e.KeyChar == ' ' && SelectionMode != SelectionMode.
None
) {
winforms\Managed\System\WinForms\ListBox.cs (13)
361
case SelectionMode.
None
:
844
return selectionMode != SelectionMode.
None
;
868
if (current == SelectionMode.
None
) {
890
if (selectionMode == SelectionMode.
None
) {
1024
if (!ClientUtils.IsEnumValid(value, (int)value, (int)SelectionMode.
None
, (int)SelectionMode.MultiExtended))
1087
if (SelectionMode != SelectionMode.
None
&& SelectedItem != null) {
1104
if (SelectionMode != SelectionMode.
None
&& value != null && (SelectedItem == null || !value.Equals(GetItemText(SelectedItem)))) {
1669
Debug.Assert(selectionMode != SelectionMode.
None
, "Guard against setting selection for None selection mode outside this code.");
1792
if (selectionMode != SelectionMode.
None
) {
1939
if (SelectionMode != SelectionMode.
None
&& this.DataManager != null)
2012
if (SelectionMode != SelectionMode.
None
) {
2133
if (selectionMode == SelectionMode.
None
)
4141
case SelectionMode.
None
: