Implemented interface member:
property
Enabled
System.Windows.Forms.ICommandBindingTargetProvider.Enabled
5 overrides of Enabled
System.Windows.Forms (4)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
195
public override bool
Enabled
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
224
public override bool
Enabled
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
70
public override bool
Enabled
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonButton.cs (1)
27
public override bool
Enabled
System.Windows.Forms.Tests (1)
System\Windows\Forms\ToolStripItemTests.cs (1)
15476
public override bool
Enabled
124 writes to Enabled
Accessibility_Core_App (1)
PrintingControls.cs (1)
61
((ToolStripButton)((ToolStrip)printPreviewDialog1.Controls[1]).Items[0]).
Enabled
= false;// disable the direct print from printpreview.as when we click that Print button PrintPage event fires again.
System.Windows.Forms (10)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
242
set => base.
Enabled
= value;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
73
set => base.
Enabled
= value;
System\Windows\Forms\DataBinding\BindingNavigator.cs (8)
519
_moveFirstItem!.
Enabled
= (position > 1);
524
_movePreviousItem!.
Enabled
= (position > 1);
529
_moveNextItem!.
Enabled
= (position < count);
534
_moveLastItem!.
Enabled
= (position < count);
541
_addNewItem.
Enabled
= (_addNewItemUserEnabled && allowNew);
549
_deleteItem.
Enabled
= (_deleteItemUserEnabled && allowRemove && count > 0);
555
_positionItem!.
Enabled
= (position > 0 && count > 0);
560
_countItem!.
Enabled
= (count > 0);
System.Windows.Forms.Design (8)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (8)
1593
menu.Items["add"].
Enabled
= enabled;
1594
menu.Items["insert"].
Enabled
= enabled;
1595
menu.Items["delete"].
Enabled
= enabled;
1596
menu.Items["sizemode"].
Enabled
= enabled;
1597
menu.Items["absolute"].
Enabled
= enabled;
1598
menu.Items["percent"].
Enabled
= enabled;
1599
menu.Items["autosize"].
Enabled
= enabled;
1627
menu.Items["delete"].
Enabled
= false;
System.Windows.Forms.Tests (101)
System\Windows\Forms\ToolStripButtonTests.cs (8)
1047
Enabled
= enabled,
1064
Enabled
= enabled
1518
Enabled
= enabled
1545
Enabled
= enabled
1572
Enabled
= enabled
1597
Enabled
= enabled
1624
Enabled
= enabled
1651
Enabled
= enabled
System\Windows\Forms\ToolStripItemTests.cs (90)
1124
Enabled
= enabled,
1161
Enabled
= enabled,
1216
Enabled
= enabled,
1259
Enabled
= enabled,
1305
Enabled
= enabled,
1354
Enabled
= enabled,
1397
Enabled
= enabled,
1431
Enabled
= enabled,
2480
item.
Enabled
= enabled;
2502
item.
Enabled
= enabled;
2526
Enabled
= value
2531
item.
Enabled
= value;
2535
item.
Enabled
= !value;
2547
item.
Enabled
= value;
2552
item.
Enabled
= value;
2557
item.
Enabled
= !value;
2570
item.
Enabled
= false;
2600
Enabled
= value
2605
item.
Enabled
= value;
2609
item.
Enabled
= !value;
2625
item.
Enabled
= value;
2630
item.
Enabled
= value;
2635
item.
Enabled
= !value;
2652
item.
Enabled
= value;
2657
item.
Enabled
= value;
2662
item.
Enabled
= !value;
2690
item.
Enabled
= value;
2695
item.
Enabled
= value;
2700
item.
Enabled
= !value;
2724
item.
Enabled
= value;
2732
item.
Enabled
= value;
2740
item.
Enabled
= !value;
2760
item.
Enabled
= value;
2765
item.
Enabled
= value;
2770
item.
Enabled
= !value;
2787
item.
Enabled
= value;
2792
item.
Enabled
= value;
2797
item.
Enabled
= !value;
2825
item.
Enabled
= value;
2830
item.
Enabled
= value;
2835
item.
Enabled
= !value;
2871
item.
Enabled
= value;
2879
item.
Enabled
= value;
2887
item.
Enabled
= !value;
2909
item.
Enabled
= false;
2914
item.
Enabled
= false;
2919
item.
Enabled
= true;
2925
item.
Enabled
= false;
6968
Enabled
= enabled,
7024
Enabled
= enabled,
9174
Enabled
= enabled,
9211
Enabled
= enabled,
9266
Enabled
= enabled,
9309
Enabled
= enabled,
9355
Enabled
= enabled,
9404
Enabled
= enabled,
9447
Enabled
= enabled,
9481
Enabled
= enabled,
11130
Enabled
= enabled,
11159
Enabled
= enabled,
11189
Enabled
= enabled,
11222
Enabled
= enabled,
11268
Enabled
= enabled,
11301
Enabled
= enabled,
12562
Enabled
= enabled,
12576
Enabled
= enabled,
13223
Enabled
= enabled,
13252
Enabled
= enabled,
13282
Enabled
= enabled,
13326
Enabled
= enabled,
13392
Enabled
= enabled,
13458
Enabled
= enabled,
13518
Enabled
= enabled,
13562
Enabled
= enabled,
13626
Enabled
= enabled,
13692
grip.
Enabled
= enabled;
13730
Enabled
= enabled,
13983
Enabled
= enabled
14010
Enabled
= enabled
14037
Enabled
= enabled
14077
Enabled
= enabled
14278
Enabled
= enabled
14853
Enabled
= enabled,
14891
Enabled
= enabled,
14947
Enabled
= enabled,
14990
Enabled
= enabled,
15036
Enabled
= enabled,
15085
Enabled
= enabled,
15128
Enabled
= enabled,
15162
Enabled
= enabled,
System\Windows\Forms\ToolStripRendererTests.cs (2)
194
yield return new object[] { graphics, new SubToolStripItem {
Enabled
= false }, new Bitmap(10, 10), new Rectangle(1, 2, 3, 4) };
303
yield return new object[] { new SubToolStripItem() {
Enabled
= false }, "Text", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.MenuFont, TextFormatFlags.Left };
System\Windows\Forms\ToolStripTests.cs (1)
5822
Enabled
= toolStripItemEnabled,
WinFormsControlsTest (4)
Dialogs.cs (2)
30
Enabled
= false,
129
_btnOpen.
Enabled
= propertyGrid1.SelectedObject is not null;
MessageBoxes.cs (2)
21
Enabled
= false
64
_btnOpen.
Enabled
= propertyGrid1.SelectedObject is not null;
103 references to Enabled
System.Windows.Forms (48)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
2895
if (string.IsNullOrEmpty(currentItem.Text) || !currentItem.
Enabled
)
2959
if (!(currentItem is ToolStripMenuItem) || string.IsNullOrEmpty(currentItem.Text) || !currentItem.
Enabled
)
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
241
if (keyData == Keys.Space && SupportsSpaceKey && CheckOnClick &&
Enabled
&& !IsOnDropDown)
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.ToolStripButtonAccessibleObject.cs (2)
53
if (_ownerItem.
Enabled
&& _ownerItem.Checked)
60
if (!_ownerItem.
Enabled
&& _ownerItem.Selected)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (2)
203
arrowColor =
Enabled
? SystemColors.HighlightText : SystemColors.ControlDark;
207
arrowColor =
Enabled
? SystemColors.ControlText : SystemColors.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (2)
575
if (
Enabled
|| DesignMode)
594
if (
Enabled
|| DesignMode)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (1)
205
Color arrowColor = !item.
Enabled
? SystemColors.ControlDark
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (13)
576
public virtual bool CanSelect =>
Enabled
;
2032
=> Animate(!DesignMode && Visible &&
Enabled
&& ParentInternal is not null);
2248
if (!
Enabled
&& ParentInternal is not null && !string.IsNullOrEmpty(ToolTipText))
2265
if (!
Enabled
&& ParentInternal is not null)
2279
if (!
Enabled
&& ParentInternal is not null)
2297
if (
Enabled
)
2466
if (
Enabled
)
2493
if (
Enabled
)
2502
if (
Enabled
&& CanSelect && !Selected)
2541
if (
Enabled
)
3020
if (
Enabled
&& Available)
3031
if (!CanSelect || !
Enabled
|| DesignMode)
3054
if (ParentInternal is not null && !ParentInternal.IsDropDown &&
Enabled
)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (2)
111
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_ownerItem.
Enabled
,
169
if (!_ownerItem.
Enabled
)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (1)
118
layoutOptions.ShadowedText = !_ownerItem.
Enabled
;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
232
return base.
Enabled
239
return base.
Enabled
;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (4)
567
if (item.
Enabled
)
624
if (item.
Enabled
)
681
e.DefaultArrowColor = item.
Enabled
? SystemColors.ControlText : SystemColors.ControlDark;
760
if (!e.Item.
Enabled
)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (3)
789
if (e.Item is not null && !e.Item.
Enabled
)
828
if (!e.Item.
Enabled
)
872
textColor = (item is not null && item.
Enabled
) ? textColor : SystemColors.GrayText;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
72
get => base.
Enabled
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (3)
368
if (
Enabled
&& (keyData == Keys.Enter || (SupportsSpaceKey && keyData == Keys.Space)))
441
if (!
Enabled
)
535
if (
Enabled
&& Available)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonButton.cs (1)
31
return _owner.
Enabled
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (4)
114
if (!button.
Enabled
)
152
if (!item.
Enabled
)
393
Color arrowColor = item.
Enabled
? SystemColors.ControlText : SystemColors.ControlDark;
524
Color arrowColor = splitButton.
Enabled
? SystemColors.ControlText : SystemColors.ControlDark;
System\Windows\Forms\DataBinding\BindingNavigator.cs (4)
372
_addNewItemUserEnabled = value.
Enabled
;
402
_deleteItemUserEnabled = value.
Enabled
;
817
_addNewItemUserEnabled = _addNewItem!.
Enabled
;
825
_deleteItemUserEnabled = _deleteItem!.
Enabled
;
System.Windows.Forms.Tests (55)
System\Windows\Forms\ToolStripButtonTests.cs (8)
51
Assert.True(item.
Enabled
);
132
Assert.True(item.
Enabled
);
219
Assert.True(item.
Enabled
);
309
Assert.True(item.
Enabled
);
397
Assert.True(item.
Enabled
);
495
Assert.True(item.
Enabled
);
594
Assert.True(button.
Enabled
);
604
Assert.False(button.
Enabled
);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
49
Assert.True(item.
Enabled
);
138
Assert.True(item.
Enabled
);
237
Assert.True(item.
Enabled
);
345
Assert.True(item.
Enabled
);
System\Windows\Forms\ToolStripItemTests.cs (43)
50
Assert.True(item.
Enabled
);
135
Assert.True(item.
Enabled
);
230
Assert.True(item.
Enabled
);
2477
Assert.Equal(ownerEnabled, item.
Enabled
);
2481
Assert.Equal(expected, item.
Enabled
);
2499
Assert.True(item.
Enabled
);
2503
Assert.Equal(expected, item.
Enabled
);
2528
Assert.Equal(value, item.
Enabled
);
2532
Assert.Equal(value, item.
Enabled
);
2536
Assert.Equal(!value, item.
Enabled
);
2548
Assert.Equal(value, item.
Enabled
);
2553
Assert.Equal(value, item.
Enabled
);
2558
Assert.Equal(!value, item.
Enabled
);
2602
Assert.Equal(value, item.
Enabled
);
2606
Assert.Equal(value, item.
Enabled
);
2610
Assert.Equal(!value, item.
Enabled
);
2626
Assert.Equal(value, item.
Enabled
);
2631
Assert.Equal(value, item.
Enabled
);
2636
Assert.Equal(!value, item.
Enabled
);
2653
Assert.Equal(value, item.
Enabled
);
2658
Assert.Equal(value, item.
Enabled
);
2663
Assert.Equal(!value, item.
Enabled
);
2691
Assert.Equal(value, item.
Enabled
);
2696
Assert.Equal(value, item.
Enabled
);
2701
Assert.Equal(!value, item.
Enabled
);
2725
Assert.Equal(value, item.
Enabled
);
2733
Assert.Equal(value, item.
Enabled
);
2741
Assert.Equal(!value, item.
Enabled
);
2761
Assert.Equal(value, item.
Enabled
);
2766
Assert.Equal(value, item.
Enabled
);
2771
Assert.Equal(!value, item.
Enabled
);
2788
Assert.Equal(value, item.
Enabled
);
2793
Assert.Equal(value, item.
Enabled
);
2798
Assert.Equal(!value, item.
Enabled
);
2826
Assert.Equal(value, item.
Enabled
);
2831
Assert.Equal(value, item.
Enabled
);
2836
Assert.Equal(!value, item.
Enabled
);
2872
Assert.Equal(value, item.
Enabled
);
2880
Assert.Equal(value, item.
Enabled
);
2888
Assert.Equal(!value, item.
Enabled
);
2910
Assert.False(item.
Enabled
);
2915
Assert.False(item.
Enabled
);
2920
Assert.True(item.
Enabled
);