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)
1355
get =>
GetState
(States.CausesValidation);
1545
public bool Created =>
GetState
(States.Created);
1678
get =>
GetState
(States.ValidationCancelled) || (ParentInternal is { } parent && parent.ValidationCancelled);
1730
if (
GetState
(States.UseWaitCursor))
1926
public bool IsDisposed =>
GetState
(States.Disposed);
1948
public bool Disposing =>
GetState
(States.Disposing);
2021
return
GetState
(States.Enabled) && (ParentInternal is null || ParentInternal.Enabled);
2317
if (
GetState
(States.Disposing | States.Disposed))
2431
if (!
GetState
(States.CheckedHost))
2470
return
GetState
(States.HostedInDialog);
2593
get =>
GetState
(States.IsAccessible);
2646
return
GetState
(States.Mirrored);
2943
public bool RecreatingHandle =>
GetState
(States.Recreate);
3619
get =>
GetState
(States.UseWaitCursor);
3622
if (
GetState
(States.UseWaitCursor) != value)
4043
if (
GetState
(States.LayoutIsDirty))
4771
ObjectDisposedException.ThrowIf(
GetState
(States.Disposed), this);
4773
if (
GetState
(States.CreatingHandle))
4868
if (!ignoreVisible && (
GetState
(States.Created) || !Visible))
4987
if (
GetState
(States.OwnCtlBrush))
5010
if (
GetState
(States.Disposing))
5015
if (
GetState
(States.CreatingHandle))
5598
if (!
GetState
(States.TopLevel) && !(
5660
internal bool DesiredVisibility =>
GetState
(States.Visible);
6054
if (!
GetState
(States.TrackingMouseEvent))
6896
if (
GetState
(States.OwnCtlBrush))
7647
if (
GetState
(States.Enabled))
8024
if (
GetState
(States.ThreadMarshalPending))
8145
if (!RecreatingHandle &&
GetState
(States.OwnCtlBrush) && Properties.TryGetValue(s_backBrushProperty, out HBRUSH backBrush))
8656
||
GetState
(States.ExceptionWhilePainting))
9071
if (
GetState
(States.ExceptionWhilePainting))
9213
if (ParentInternal is not null && ParentInternal.
GetState
(States.LayoutIsDirty))
9966
bool created =
GetState
(States.Created);
9968
if (
GetState
(States.TrackingMouseEvent))
10199
if (
GetState
(States.TrackingMouseEvent))
10248
if (LayoutSuspendCount == 0 &&
GetState
(States.LayoutDeferred) && performLayout)
10287
if (accept ==
GetState
(States.DropTarget) || !IsHandleCreated)
10907
if (!
GetState
(States.SizeLockedByOS))
11317
private bool ShouldSerializeEnabled() => !
GetState
(States.Enabled);
12157
if (!RecreatingHandle && !Disposing && !IsDisposed &&
GetState
(States.TrackingMouseEvent))
12416
&&
GetState
(States.MousePressed)
12422
if (!
GetState
(States.DoubleClickFired))
12834
bool oldVisibleBit =
GetState
(States.Visible);
12872
if (!
GetState
(States.ParentRecreating) && (oldVisibleProperty != visible))
13447
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))
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)
4705
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))
6074
if (
GetState
(States.Modal))
7006
if (!
GetState
(States.Recreate))