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)
637
get =>
GetState
(States.AllowDrop);
640
if (
GetState
(States.AllowDrop) == value)
1364
get =>
GetState
(States.CausesValidation);
1554
public bool Created =>
GetState
(States.Created);
1687
get =>
GetState
(States.ValidationCancelled) || (ParentInternal is { } parent && parent.ValidationCancelled);
1739
if (
GetState
(States.UseWaitCursor))
1935
public bool IsDisposed =>
GetState
(States.Disposed);
1957
public bool Disposing =>
GetState
(States.Disposing);
2030
return
GetState
(States.Enabled) && (ParentInternal is null || ParentInternal.Enabled);
2326
if (
GetState
(States.Disposing | States.Disposed))
2440
if (!
GetState
(States.CheckedHost))
2479
return
GetState
(States.HostedInDialog);
2602
get =>
GetState
(States.IsAccessible);
2655
return
GetState
(States.Mirrored);
2952
public bool RecreatingHandle =>
GetState
(States.Recreate);
3628
get =>
GetState
(States.UseWaitCursor);
3631
if (
GetState
(States.UseWaitCursor) != value)
4052
if (
GetState
(States.LayoutIsDirty))
4780
ObjectDisposedException.ThrowIf(
GetState
(States.Disposed), this);
4782
if (
GetState
(States.CreatingHandle))
4877
if (!ignoreVisible && (
GetState
(States.Created) || !Visible))
4996
if (
GetState
(States.OwnCtlBrush))
5019
if (
GetState
(States.Disposing))
5024
if (
GetState
(States.CreatingHandle))
5607
if (!
GetState
(States.TopLevel) && !(
5669
internal bool DesiredVisibility =>
GetState
(States.Visible);
6063
if (!
GetState
(States.TrackingMouseEvent))
6905
if (
GetState
(States.OwnCtlBrush))
7705
if (
GetState
(States.Enabled))
8082
if (
GetState
(States.ThreadMarshalPending))
8203
if (!RecreatingHandle &&
GetState
(States.OwnCtlBrush) && Properties.TryGetValue(s_backBrushProperty, out HBRUSH backBrush))
8714
||
GetState
(States.ExceptionWhilePainting))
9129
if (
GetState
(States.ExceptionWhilePainting))
9271
if (ParentInternal is not null && ParentInternal.
GetState
(States.LayoutIsDirty))
10024
bool created =
GetState
(States.Created);
10026
if (
GetState
(States.TrackingMouseEvent))
10257
if (
GetState
(States.TrackingMouseEvent))
10306
if (LayoutSuspendCount == 0 &&
GetState
(States.LayoutDeferred) && performLayout)
10345
if (accept ==
GetState
(States.DropTarget) || !IsHandleCreated)
10965
if (!
GetState
(States.SizeLockedByOS))
11375
private bool ShouldSerializeEnabled() => !
GetState
(States.Enabled);
12215
if (!RecreatingHandle && !Disposing && !IsDisposed &&
GetState
(States.TrackingMouseEvent))
12474
&&
GetState
(States.MousePressed)
12480
if (!
GetState
(States.DoubleClickFired))
12892
bool oldVisibleBit =
GetState
(States.Visible);
12930
if (!
GetState
(States.ParentRecreating) && (oldVisibleProperty != visible))
13505
bool IArrangedElement.ParticipatesInLayout =>
GetState
(States.Visible);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
16908
if (
GetState
(States.Visible))
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
716
if (RecreatingHandle ||
GetState
(States.CreatingHandle))
2449
if (
GetState
(States.Disposed))
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3314
if (m.LParamInternal == Handle && !
GetState
(States.CreatingHandle))
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4710
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)
1466
bool oldVisibleBit =
GetState
(States.Visible);
1557
public bool Modal =>
GetState
(States.Modal);
3246
if (
GetState
(States.CreatingHandle))
3837
return
GetState
(States.Visible) && IsHandleCreated;
4309
if (
GetState
(States.Modal))
6123
if (
GetState
(States.Modal))
7055
if (!
GetState
(States.Recreate))