67 references to GetState
System.Windows.Forms (67)
System\Windows\Forms\ActiveX\AxHost.cs (4)
431
else if (containingControl.Visible && !
GetState
(States.Visible) && IsHandleCreated && GetOcState() >= OC_INPLACE)
1535
if (
GetState
(States.Visible) == value)
3146
bool visible =
GetState
(States.Visible);
3151
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)
533
get =>
GetState
(States.AllowDrop);
536
if (
GetState
(States.AllowDrop) == value)
1082
get =>
GetState
(States.CausesValidation);
1279
public bool Created =>
GetState
(States.Created);
1412
get =>
GetState
(States.ValidationCancelled) || (ParentInternal is { } parent && parent.ValidationCancelled);
1464
if (
GetState
(States.UseWaitCursor))
1660
public bool IsDisposed =>
GetState
(States.Disposed);
1682
public bool Disposing =>
GetState
(States.Disposing);
1755
return
GetState
(States.Enabled) && (ParentInternal is null || ParentInternal.Enabled);
2051
if (
GetState
(States.Disposing | States.Disposed))
2165
if (!
GetState
(States.CheckedHost))
2204
return
GetState
(States.HostedInDialog);
2327
get =>
GetState
(States.IsAccessible);
2380
return
GetState
(States.Mirrored);
2677
public bool RecreatingHandle =>
GetState
(States.Recreate);
3353
get =>
GetState
(States.UseWaitCursor);
3356
if (
GetState
(States.UseWaitCursor) != value)
3764
if (
GetState
(States.LayoutIsDirty))
4469
ObjectDisposedException.ThrowIf(
GetState
(States.Disposed), this);
4471
if (
GetState
(States.CreatingHandle))
4566
if (!ignoreVisible && (
GetState
(States.Created) || !Visible))
4685
if (
GetState
(States.OwnCtlBrush))
4708
if (
GetState
(States.Disposing))
4713
if (
GetState
(States.CreatingHandle))
5287
if (!
GetState
(States.TopLevel) && !(
5349
internal bool DesiredVisibility =>
GetState
(States.Visible);
5743
if (!
GetState
(States.TrackingMouseEvent))
6583
if (
GetState
(States.OwnCtlBrush))
6959
if (
GetState
(States.Enabled))
7332
if (
GetState
(States.ThreadMarshalPending))
7448
if (!RecreatingHandle &&
GetState
(States.OwnCtlBrush) && Properties.TryGetValue(s_backBrushProperty, out HBRUSH backBrush))
7962
||
GetState
(States.ExceptionWhilePainting))
8265
if (
GetState
(States.ExceptionWhilePainting))
8407
if (ParentInternal is not null && ParentInternal.
GetState
(States.LayoutIsDirty))
9158
bool created =
GetState
(States.Created);
9159
if (
GetState
(States.TrackingMouseEvent))
9373
if (
GetState
(States.TrackingMouseEvent))
9422
if (LayoutSuspendCount == 0 &&
GetState
(States.LayoutDeferred) && performLayout)
9461
if (accept ==
GetState
(States.DropTarget) || !IsHandleCreated)
10084
if (!
GetState
(States.SizeLockedByOS))
10480
private bool ShouldSerializeEnabled() => !
GetState
(States.Enabled);
11320
if (!RecreatingHandle && !Disposing && !IsDisposed &&
GetState
(States.TrackingMouseEvent))
11578
&&
GetState
(States.MousePressed)
11584
if (!
GetState
(States.DoubleClickFired))
11996
bool oldVisibleBit =
GetState
(States.Visible);
12034
if (!
GetState
(States.ParentRecreating) && (oldVisibleProperty != visible))
12601
bool IArrangedElement.ParticipatesInLayout =>
GetState
(States.Visible);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
16852
if (
GetState
(States.Visible))
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
718
if (RecreatingHandle ||
GetState
(States.CreatingHandle))
2449
if (
GetState
(States.Disposed))
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3230
if (m.LParamInternal == Handle && !
GetState
(States.CreatingHandle))
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4662
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)
1470
bool oldVisibleBit =
GetState
(States.Visible);
1561
public bool Modal =>
GetState
(States.Modal);
3183
if (
GetState
(States.CreatingHandle))
3777
return
GetState
(States.Visible) && IsHandleCreated;
4246
if (
GetState
(States.Modal))
5959
if (
GetState
(States.Modal))
6887
if (!
GetState
(States.Recreate))