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