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)
606
get =>
GetState
(States.AllowDrop);
609
if (
GetState
(States.AllowDrop) == value)
1155
get =>
GetState
(States.CausesValidation);
1352
public bool Created =>
GetState
(States.Created);
1485
get =>
GetState
(States.ValidationCancelled) || (ParentInternal is { } parent && parent.ValidationCancelled);
1537
if (
GetState
(States.UseWaitCursor))
1733
public bool IsDisposed =>
GetState
(States.Disposed);
1755
public bool Disposing =>
GetState
(States.Disposing);
1828
return
GetState
(States.Enabled) && (ParentInternal is null || ParentInternal.Enabled);
2124
if (
GetState
(States.Disposing | States.Disposed))
2238
if (!
GetState
(States.CheckedHost))
2277
return
GetState
(States.HostedInDialog);
2400
get =>
GetState
(States.IsAccessible);
2453
return
GetState
(States.Mirrored);
2750
public bool RecreatingHandle =>
GetState
(States.Recreate);
3426
get =>
GetState
(States.UseWaitCursor);
3429
if (
GetState
(States.UseWaitCursor) != value)
3837
if (
GetState
(States.LayoutIsDirty))
4542
ObjectDisposedException.ThrowIf(
GetState
(States.Disposed), this);
4544
if (
GetState
(States.CreatingHandle))
4639
if (!ignoreVisible && (
GetState
(States.Created) || !Visible))
4758
if (
GetState
(States.OwnCtlBrush))
4781
if (
GetState
(States.Disposing))
4786
if (
GetState
(States.CreatingHandle))
5360
if (!
GetState
(States.TopLevel) && !(
5422
internal bool DesiredVisibility =>
GetState
(States.Visible);
5816
if (!
GetState
(States.TrackingMouseEvent))
6656
if (
GetState
(States.OwnCtlBrush))
7032
if (
GetState
(States.Enabled))
7404
if (
GetState
(States.ThreadMarshalPending))
7521
if (!RecreatingHandle &&
GetState
(States.OwnCtlBrush) && Properties.TryGetValue(s_backBrushProperty, out HBRUSH backBrush))
8032
||
GetState
(States.ExceptionWhilePainting))
8326
if (
GetState
(States.ExceptionWhilePainting))
8468
if (ParentInternal is not null && ParentInternal.
GetState
(States.LayoutIsDirty))
9221
bool created =
GetState
(States.Created);
9223
if (
GetState
(States.TrackingMouseEvent))
9455
if (
GetState
(States.TrackingMouseEvent))
9504
if (LayoutSuspendCount == 0 &&
GetState
(States.LayoutDeferred) && performLayout)
9543
if (accept ==
GetState
(States.DropTarget) || !IsHandleCreated)
10163
if (!
GetState
(States.SizeLockedByOS))
10575
private bool ShouldSerializeEnabled() => !
GetState
(States.Enabled);
11415
if (!RecreatingHandle && !Disposing && !IsDisposed &&
GetState
(States.TrackingMouseEvent))
11670
&&
GetState
(States.MousePressed)
11676
if (!
GetState
(States.DoubleClickFired))
12088
bool oldVisibleBit =
GetState
(States.Visible);
12126
if (!
GetState
(States.ParentRecreating) && (oldVisibleProperty != visible))
12693
bool IArrangedElement.ParticipatesInLayout =>
GetState
(States.Visible);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
16846
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)
4671
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)
1467
bool oldVisibleBit =
GetState
(States.Visible);
1558
public bool Modal =>
GetState
(States.Modal);
3258
if (
GetState
(States.CreatingHandle))
3852
return
GetState
(States.Visible) && IsHandleCreated;
4312
if (
GetState
(States.Modal))
6050
if (
GetState
(States.Modal))
6978
if (!
GetState
(States.Recreate))