75 references to state
System.Windows.Forms (75)
winforms\Managed\System\WinForms\ToolStripItem.cs (75)
191
state
[stateEnabled | stateAutoSize | stateVisible | stateContstructing | stateSupportsItemClick | stateInvalidMirroredImage | stateMouseDownAndUpMustBeInSameItem | stateUseAmbientMargin] = true;
192
state
[stateAllowDrop | stateMouseDownAndNoDrag | stateSupportsRightClick | statePressed | stateSelected | stateDisposed | stateDoubleClickEnabled | stateRightToLeftAutoMirrorImage | stateSupportsSpaceKey] = false;
197
state
[stateContstructing] = false;
380
return
state
[stateAllowDrop];
383
if (value !=
state
[stateAllowDrop]) {
385
state
[stateAllowDrop] = value;
402
return
state
[stateAutoSize];
405
if (
state
[stateAutoSize] != value) {
406
state
[stateAutoSize] = value;
423
return
state
[stateAutoToolTip];
426
state
[stateAutoToolTip] = value;
445
return
state
[stateVisible];
775
if (!
state
[stateContstructing]) {
826
return
state
[stateDoubleClickEnabled];
829
state
[stateDoubleClickEnabled] = value;
945
return
state
[stateEnabled] && parentEnabled;
949
if (
state
[stateEnabled] != value) {
950
state
[stateEnabled] = value;
951
if (!
state
[stateEnabled]) {
952
bool wasSelected =
state
[stateSelected];
954
state
[stateSelected | statePressed] = false;
1168
return
state
[stateVisible];
1249
state
[stateInvalidMirroredImage] = true;
1273
state
[stateInvalidMirroredImage] = true;
1335
state
[stateInvalidMirroredImage] = true;
1374
state
[stateInvalidMirroredImage] = true;
1455
return
state
[stateDisposed];
1522
state
[stateUseAmbientMargin] = false;
1590
get { return
state
[stateMouseDownAndUpMustBeInSameItem]; }
1591
set {
state
[stateMouseDownAndUpMustBeInSameItem] = value; }
1959
return CanSelect &&
state
[statePressed];
2083
return
state
[stateRightToLeftAutoMirrorImage];
2086
if (
state
[stateRightToLeftAutoMirrorImage] != value) {
2087
state
[stateRightToLeftAutoMirrorImage] = value;
2097
if (
state
[stateInvalidMirroredImage]) {
2104
state
[stateInvalidMirroredImage] = false;
2149
return CanSelect && !DesignMode && (
state
[stateSelected] ||
2198
return
state
[stateSupportsRightClick];
2201
state
[stateSupportsRightClick] = value;
2207
return
state
[stateSupportsItemClick];
2210
state
[stateSupportsItemClick] = value;
2216
return
state
[stateSupportsSpaceKey];
2219
state
[stateSupportsSpaceKey] = value;
2226
return
state
[stateSupportsDisabledHotTracking];
2229
state
[stateSupportsDisabledHotTracking] = value;
2474
if (animate !=
state
[stateCurrentlyAnimatingImage]) {
2478
state
[stateCurrentlyAnimatingImage] = animate;
2484
state
[stateCurrentlyAnimatingImage] = animate;
2531
state
[stateDisposing] = true;
2538
state
[stateDisposed] = true;
2548
state
[stateDisposing] = false;
2806
state
[statePressed] = true;
2825
state
[statePressed] = false;
2904
if (
state
[stateMouseDownAndNoDrag] ||
state
[statePressed] ||
state
[stateSelected]) {
2905
state
[stateMouseDownAndNoDrag | statePressed | stateSelected] = false;
2925
state
[stateMouseDownAndNoDrag] = !BeginDragForItemReorder();
2926
if (
state
[stateMouseDownAndNoDrag]) {
2951
if (
state
[stateMouseDownAndNoDrag] || fireMouseUp) {
2954
if (e.Button == MouseButtons.Left || (e.Button == MouseButtons.Right &&
state
[stateSupportsRightClick])) {
3418
if (
state
[statePressed] != push) {
3419
state
[statePressed] = push;
3433
if (keyData == Keys.Enter || (
state
[stateSupportsSpaceKey] && keyData == Keys.Space)) {
3546
state
[stateSelected] = true;
3549
Debug.Assert(
state
[stateSelected], "calling notify selection change changed the selection state of this item");
3590
if (!
state
[stateDisposing] && !IsDisposed) {
3603
if (
state
[stateVisible] != visible) {
3604
state
[stateVisible]= visible;
3621
if (!
state
[stateContstructing]) {
3652
if (
state
[stateUseAmbientMargin] && Margin != DefaultMargin) {
3716
return !
state
[stateVisible]; // only serialize if someone turned off visiblilty
3811
state
[stateUseAmbientMargin] = true;
3928
if (
state
[stateSelected]) {
3929
state
[stateSelected] = false;