74 references to _state
System.Windows.Forms (74)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (74)
151
_state
[s_stateEnabled | s_stateAutoSize | s_stateVisible | s_stateConstructing | s_stateSupportsItemClick | s_stateInvalidMirroredImage | s_stateMouseDownAndUpMustBeInSameItem | s_stateUseAmbientMargin] = true;
152
_state
[s_stateAllowDrop | s_stateMouseDownAndNoDrag | s_stateSupportsRightClick | s_statePressed | s_stateSelected | s_stateDisposed | s_stateDoubleClickEnabled | s_stateRightToLeftAutoMirrorImage | s_stateSupportsSpaceKey] = false;
157
_state
[s_stateConstructing] = false;
312
get =>
_state
[s_stateAllowDrop];
315
if (value !=
_state
[s_stateAllowDrop])
318
_state
[s_stateAllowDrop] = value;
334
get =>
_state
[s_stateAutoSize];
337
if (
_state
[s_stateAutoSize] != value)
339
_state
[s_stateAutoSize] = value;
355
get =>
_state
[s_stateAutoToolTip];
356
set =>
_state
[s_stateAutoToolTip] = value;
368
get =>
_state
[s_stateVisible];
708
if (!
_state
[s_stateConstructing])
745
get =>
_state
[s_stateDoubleClickEnabled];
746
set =>
_state
[s_stateDoubleClickEnabled] = value;
806
return
_state
[s_stateEnabled] && parentEnabled;
811
if (
_state
[s_stateEnabled] != value)
813
_state
[s_stateEnabled] = value;
814
if (!
_state
[s_stateEnabled])
816
bool wasSelected =
_state
[s_stateSelected];
818
_state
[s_stateSelected | s_statePressed] = false;
976
return
_state
[s_stateVisible];
1028
bool disposing =
_state
[s_stateDisposing];
1033
_state
[s_stateInvalidMirroredImage] = true;
1068
_state
[s_stateInvalidMirroredImage] = true;
1130
_state
[s_stateInvalidMirroredImage] = true;
1161
_state
[s_stateInvalidMirroredImage] = true;
1218
public bool IsDisposed =>
_state
[s_stateDisposed];
1270
_state
[s_stateUseAmbientMargin] = false;
1306
get =>
_state
[s_stateMouseDownAndUpMustBeInSameItem];
1307
set =>
_state
[s_stateMouseDownAndUpMustBeInSameItem] = value;
1586
public virtual bool Pressed => CanSelect &&
_state
[s_statePressed];
1694
get =>
_state
[s_stateRightToLeftAutoMirrorImage];
1697
if (
_state
[s_stateRightToLeftAutoMirrorImage] != value)
1699
_state
[s_stateRightToLeftAutoMirrorImage] = value;
1709
if (
_state
[s_stateInvalidMirroredImage])
1721
_state
[s_stateInvalidMirroredImage] = false;
1765
=> CanSelect && !DesignMode && (
_state
[s_stateSelected] ||
1815
get =>
_state
[s_stateSupportsRightClick];
1816
set =>
_state
[s_stateSupportsRightClick] = value;
1821
get =>
_state
[s_stateSupportsItemClick];
1822
set =>
_state
[s_stateSupportsItemClick] = value;
1827
get =>
_state
[s_stateSupportsSpaceKey];
1828
set =>
_state
[s_stateSupportsSpaceKey] = value;
1833
get =>
_state
[s_stateSupportsDisabledHotTracking];
1834
set =>
_state
[s_stateSupportsDisabledHotTracking] = value;
2030
if (animate ==
_state
[s_stateCurrentlyAnimatingImage])
2050
_state
[s_stateCurrentlyAnimatingImage] = animate;
2089
_state
[s_stateDisposing] = true;
2097
_state
[s_stateDisposed] = true;
2109
_state
[s_stateDisposing] = false;
2411
_state
[s_statePressed] = true;
2432
_state
[s_statePressed] = false;
2520
if (
_state
[s_stateMouseDownAndNoDrag] ||
_state
[s_statePressed] ||
_state
[s_stateSelected])
2522
_state
[s_stateMouseDownAndNoDrag | s_statePressed | s_stateSelected] = false;
2542
_state
[s_stateMouseDownAndNoDrag] = !BeginDragForItemReorder();
2543
if (
_state
[s_stateMouseDownAndNoDrag])
2569
if (
_state
[s_stateMouseDownAndNoDrag] || fireMouseUp)
2573
if (e.Button == MouseButtons.Left || (e.Button == MouseButtons.Right &&
_state
[s_stateSupportsRightClick]))
3028
if (
_state
[s_statePressed] != push)
3030
_state
[s_statePressed] = push;
3043
if (keyData == Keys.Enter || (
_state
[s_stateSupportsSpaceKey] && keyData == Keys.Space))
3138
_state
[s_stateSelected] = true;
3202
if (!
_state
[s_stateDisposing] && !IsDisposed)
3215
if (
_state
[s_stateVisible] != visible)
3217
_state
[s_stateVisible] = visible;
3234
if (!
_state
[s_stateConstructing])
3271
if (
_state
[s_stateUseAmbientMargin] && Margin != DefaultMargin)
3326
private bool ShouldSerializeVisible() => !
_state
[s_stateVisible];
3397
_state
[s_stateUseAmbientMargin] = true;
3527
if (
_state
[s_stateSelected])
3529
_state
[s_stateSelected] = false;