67 references to GetState
System.Windows.Forms (67)
System\Windows\Forms\ActiveX\AxHost.cs (4)
428
else if (containingControl.Visible && !
GetState
(States.Visible) && IsHandleCreated && GetOcState() >= OC_INPLACE)
1532
if (
GetState
(States.Visible) == value)
3143
bool visible =
GetState
(States.Visible);
3148
if (visible !=
GetState
(States.Visible))
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
86
if (
GetState
(States.TopLevel))
System\Windows\Forms\Control.ControlNativeWindow.cs (2)
93
if (!_control.
GetState
(States.TrackingMouseEvent))
96
if (!_control.
GetState
(States.MouseEnterPending))
System\Windows\Forms\Control.cs (47)
627
get =>
GetState
(States.AllowDrop);
630
if (
GetState
(States.AllowDrop) == value)
1176
get =>
GetState
(States.CausesValidation);
1366
public bool Created =>
GetState
(States.Created);
1499
get =>
GetState
(States.ValidationCancelled) || (ParentInternal is { } parent && parent.ValidationCancelled);
1551
if (
GetState
(States.UseWaitCursor))
1747
public bool IsDisposed =>
GetState
(States.Disposed);
1769
public bool Disposing =>
GetState
(States.Disposing);
1842
return
GetState
(States.Enabled) && (ParentInternal is null || ParentInternal.Enabled);
2138
if (
GetState
(States.Disposing | States.Disposed))
2252
if (!
GetState
(States.CheckedHost))
2291
return
GetState
(States.HostedInDialog);
2414
get =>
GetState
(States.IsAccessible);
2467
return
GetState
(States.Mirrored);
2764
public bool RecreatingHandle =>
GetState
(States.Recreate);
3440
get =>
GetState
(States.UseWaitCursor);
3443
if (
GetState
(States.UseWaitCursor) != value)
3851
if (
GetState
(States.LayoutIsDirty))
4556
ObjectDisposedException.ThrowIf(
GetState
(States.Disposed), this);
4558
if (
GetState
(States.CreatingHandle))
4653
if (!ignoreVisible && (
GetState
(States.Created) || !Visible))
4772
if (
GetState
(States.OwnCtlBrush))
4795
if (
GetState
(States.Disposing))
4800
if (
GetState
(States.CreatingHandle))
5374
if (!
GetState
(States.TopLevel) && !(
5436
internal bool DesiredVisibility =>
GetState
(States.Visible);
5830
if (!
GetState
(States.TrackingMouseEvent))
6672
if (
GetState
(States.OwnCtlBrush))
7048
if (
GetState
(States.Enabled))
7418
if (
GetState
(States.ThreadMarshalPending))
7535
if (!RecreatingHandle &&
GetState
(States.OwnCtlBrush) && Properties.TryGetValue(s_backBrushProperty, out HBRUSH backBrush))
8046
||
GetState
(States.ExceptionWhilePainting))
8340
if (
GetState
(States.ExceptionWhilePainting))
8482
if (ParentInternal is not null && ParentInternal.
GetState
(States.LayoutIsDirty))
9235
bool created =
GetState
(States.Created);
9237
if (
GetState
(States.TrackingMouseEvent))
9468
if (
GetState
(States.TrackingMouseEvent))
9517
if (LayoutSuspendCount == 0 &&
GetState
(States.LayoutDeferred) && performLayout)
9556
if (accept ==
GetState
(States.DropTarget) || !IsHandleCreated)
10176
if (!
GetState
(States.SizeLockedByOS))
10586
private bool ShouldSerializeEnabled() => !
GetState
(States.Enabled);
11426
if (!RecreatingHandle && !Disposing && !IsDisposed &&
GetState
(States.TrackingMouseEvent))
11681
&&
GetState
(States.MousePressed)
11687
if (!
GetState
(States.DoubleClickFired))
12099
bool oldVisibleBit =
GetState
(States.Visible);
12137
if (!
GetState
(States.ParentRecreating) && (oldVisibleProperty != visible))
12704
bool IArrangedElement.ParticipatesInLayout =>
GetState
(States.Visible);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
16843
if (
GetState
(States.Visible))
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
716
if (RecreatingHandle ||
GetState
(States.CreatingHandle))
2447
if (
GetState
(States.Disposed))
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3211
if (m.LParamInternal == Handle && !
GetState
(States.CreatingHandle))
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4665
get { return
GetState
(States.Visible); }
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflow.cs (1)
67
get { return
GetState
(States.Visible); }
System\Windows\Forms\Form.cs (7)
1463
bool oldVisibleBit =
GetState
(States.Visible);
1554
public bool Modal =>
GetState
(States.Modal);
3243
if (
GetState
(States.CreatingHandle))
3828
return
GetState
(States.Visible) && IsHandleCreated;
4293
if (
GetState
(States.Modal))
6058
if (
GetState
(States.Modal))
6990
if (!
GetState
(States.Recreate))