48 references to SelectionMode
System.Windows.Forms (48)
winforms\Managed\System\WinForms\CheckedListBox.cs (12)
296
public override
SelectionMode
SelectionMode {
302
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
SelectionMode
.None, (int)
SelectionMode
.MultiExtended)){
303
throw new InvalidEnumArgumentException("value", (int)value, typeof(
SelectionMode
));
305
if (value !=
SelectionMode
.One
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 (36)
114
SelectionMode
selectionMode = System.Windows.Forms.
SelectionMode
.One;
117
SelectionMode
cachedSelectionMode = System.Windows.Forms.
SelectionMode
.One;
361
case
SelectionMode
.None:
364
case
SelectionMode
.MultiSimple:
367
case
SelectionMode
.MultiExtended:
370
case
SelectionMode
.One:
844
return selectionMode !=
SelectionMode
.None;
866
SelectionMode
current = (selectionModeChanging) ? cachedSelectionMode : selectionMode;
868
if (current ==
SelectionMode
.None) {
872
if (current ==
SelectionMode
.One && IsHandleCreated) {
890
if (selectionMode ==
SelectionMode
.None) {
894
if (selectionMode ==
SelectionMode
.One && value != -1) {
1016
DefaultValue(
SelectionMode
.One),
1019
public virtual
SelectionMode
SelectionMode {
1024
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
SelectionMode
.None, (int)
SelectionMode
.MultiExtended))
1026
throw new InvalidEnumArgumentException("value", (int)value, typeof(
SelectionMode
));
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.");
1671
if (selectionMode ==
SelectionMode
.One) {
1698
case
SelectionMode
.One:
1703
case
SelectionMode
.MultiSimple:
1704
case
SelectionMode
.MultiExtended:
1792
if (selectionMode !=
SelectionMode
.None) {
1800
if (selectedItems.Count > 0 && selectionMode ==
SelectionMode
.One) {
1939
if (SelectionMode !=
SelectionMode
.None && this.DataManager != null)
2012
if (SelectionMode !=
SelectionMode
.None) {
2133
if (selectionMode ==
SelectionMode
.None)
4138
SelectionMode
current = (owner.selectionModeChanging) ? owner.cachedSelectionMode : owner.selectionMode;
4141
case
SelectionMode
.None:
4144
case
SelectionMode
.One:
4151
case
SelectionMode
.MultiSimple:
4152
case
SelectionMode
.MultiExtended: