67 references to GetState
System.Windows.Forms (67)
System\Windows\Forms\ActiveX\AxHost.cs (4)
430
else if (containingControl.Visible && !
GetState
(States.Visible) && IsHandleCreated && GetOcState() >= OC_INPLACE)
1534
if (
GetState
(States.Visible) == value)
3145
bool visible =
GetState
(States.Visible);
3150
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)
532
get =>
GetState
(States.AllowDrop);
535
if (
GetState
(States.AllowDrop) == value)
1081
get =>
GetState
(States.CausesValidation);
1278
public bool Created =>
GetState
(States.Created);
1411
get =>
GetState
(States.ValidationCancelled) || (ParentInternal is { } parent && parent.ValidationCancelled);
1463
if (
GetState
(States.UseWaitCursor))
1659
public bool IsDisposed =>
GetState
(States.Disposed);
1681
public bool Disposing =>
GetState
(States.Disposing);
1754
return
GetState
(States.Enabled) && (ParentInternal is null || ParentInternal.Enabled);
2050
if (
GetState
(States.Disposing | States.Disposed))
2164
if (!
GetState
(States.CheckedHost))
2203
return
GetState
(States.HostedInDialog);
2326
get =>
GetState
(States.IsAccessible);
2379
return
GetState
(States.Mirrored);
2676
public bool RecreatingHandle =>
GetState
(States.Recreate);
3352
get =>
GetState
(States.UseWaitCursor);
3355
if (
GetState
(States.UseWaitCursor) != value)
3763
if (
GetState
(States.LayoutIsDirty))
4468
ObjectDisposedException.ThrowIf(
GetState
(States.Disposed), this);
4470
if (
GetState
(States.CreatingHandle))
4565
if (!ignoreVisible && (
GetState
(States.Created) || !Visible))
4684
if (
GetState
(States.OwnCtlBrush))
4707
if (
GetState
(States.Disposing))
4712
if (
GetState
(States.CreatingHandle))
5246
if (!
GetState
(States.TopLevel) && !(
5308
internal bool DesiredVisibility =>
GetState
(States.Visible);
5702
if (!
GetState
(States.TrackingMouseEvent))
6542
if (
GetState
(States.OwnCtlBrush))
6918
if (
GetState
(States.Enabled))
7291
if (
GetState
(States.ThreadMarshalPending))
7407
if (!RecreatingHandle &&
GetState
(States.OwnCtlBrush) && Properties.TryGetValue(s_backBrushProperty, out HBRUSH backBrush))
7921
||
GetState
(States.ExceptionWhilePainting))
8224
if (
GetState
(States.ExceptionWhilePainting))
8366
if (ParentInternal is not null && ParentInternal.
GetState
(States.LayoutIsDirty))
9117
bool created =
GetState
(States.Created);
9118
if (
GetState
(States.TrackingMouseEvent))
9332
if (
GetState
(States.TrackingMouseEvent))
9381
if (LayoutSuspendCount == 0 &&
GetState
(States.LayoutDeferred) && performLayout)
9420
if (accept ==
GetState
(States.DropTarget) || !IsHandleCreated)
10051
if (!
GetState
(States.SizeLockedByOS))
10447
private bool ShouldSerializeEnabled() => !
GetState
(States.Enabled);
11287
if (!RecreatingHandle && !Disposing && !IsDisposed &&
GetState
(States.TrackingMouseEvent))
11545
&&
GetState
(States.MousePressed)
11551
if (!
GetState
(States.DoubleClickFired))
11964
bool oldVisibleBit =
GetState
(States.Visible);
12002
if (!
GetState
(States.ParentRecreating) && (oldVisibleProperty != visible))
12569
bool IArrangedElement.ParticipatesInLayout =>
GetState
(States.Visible);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
16833
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)
3219
if (m.LParamInternal == Handle && !
GetState
(States.CreatingHandle))
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4667
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))