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)
531
get =>
GetState
(States.AllowDrop);
534
if (
GetState
(States.AllowDrop) == value)
1080
get =>
GetState
(States.CausesValidation);
1277
public bool Created =>
GetState
(States.Created);
1410
get =>
GetState
(States.ValidationCancelled) || (ParentInternal is { } parent && parent.ValidationCancelled);
1462
if (
GetState
(States.UseWaitCursor))
1658
public bool IsDisposed =>
GetState
(States.Disposed);
1680
public bool Disposing =>
GetState
(States.Disposing);
1753
return
GetState
(States.Enabled) && (ParentInternal is null || ParentInternal.Enabled);
2049
if (
GetState
(States.Disposing | States.Disposed))
2163
if (!
GetState
(States.CheckedHost))
2202
return
GetState
(States.HostedInDialog);
2325
get =>
GetState
(States.IsAccessible);
2378
return
GetState
(States.Mirrored);
2675
public bool RecreatingHandle =>
GetState
(States.Recreate);
3351
get =>
GetState
(States.UseWaitCursor);
3354
if (
GetState
(States.UseWaitCursor) != value)
3762
if (
GetState
(States.LayoutIsDirty))
4467
ObjectDisposedException.ThrowIf(
GetState
(States.Disposed), this);
4469
if (
GetState
(States.CreatingHandle))
4564
if (!ignoreVisible && (
GetState
(States.Created) || !Visible))
4683
if (
GetState
(States.OwnCtlBrush))
4706
if (
GetState
(States.Disposing))
4711
if (
GetState
(States.CreatingHandle))
5285
if (!
GetState
(States.TopLevel) && !(
5347
internal bool DesiredVisibility =>
GetState
(States.Visible);
5741
if (!
GetState
(States.TrackingMouseEvent))
6581
if (
GetState
(States.OwnCtlBrush))
6957
if (
GetState
(States.Enabled))
7330
if (
GetState
(States.ThreadMarshalPending))
7446
if (!RecreatingHandle &&
GetState
(States.OwnCtlBrush) && Properties.TryGetValue(s_backBrushProperty, out HBRUSH backBrush))
7960
||
GetState
(States.ExceptionWhilePainting))
8263
if (
GetState
(States.ExceptionWhilePainting))
8405
if (ParentInternal is not null && ParentInternal.
GetState
(States.LayoutIsDirty))
9156
bool created =
GetState
(States.Created);
9157
if (
GetState
(States.TrackingMouseEvent))
9371
if (
GetState
(States.TrackingMouseEvent))
9420
if (LayoutSuspendCount == 0 &&
GetState
(States.LayoutDeferred) && performLayout)
9459
if (accept ==
GetState
(States.DropTarget) || !IsHandleCreated)
10082
if (!
GetState
(States.SizeLockedByOS))
10478
private bool ShouldSerializeEnabled() => !
GetState
(States.Enabled);
11318
if (!RecreatingHandle && !Disposing && !IsDisposed &&
GetState
(States.TrackingMouseEvent))
11576
&&
GetState
(States.MousePressed)
11582
if (!
GetState
(States.DoubleClickFired))
11994
bool oldVisibleBit =
GetState
(States.Visible);
12032
if (!
GetState
(States.ParentRecreating) && (oldVisibleProperty != visible))
12599
bool IArrangedElement.ParticipatesInLayout =>
GetState
(States.Visible);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
16851
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)
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)
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))