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)
627
get =>
GetState
(States.AllowDrop);
630
if (
GetState
(States.AllowDrop) == value)
1176
get =>
GetState
(States.CausesValidation);
1373
public bool Created =>
GetState
(States.Created);
1506
get =>
GetState
(States.ValidationCancelled) || (ParentInternal is { } parent && parent.ValidationCancelled);
1558
if (
GetState
(States.UseWaitCursor))
1754
public bool IsDisposed =>
GetState
(States.Disposed);
1776
public bool Disposing =>
GetState
(States.Disposing);
1849
return
GetState
(States.Enabled) && (ParentInternal is null || ParentInternal.Enabled);
2145
if (
GetState
(States.Disposing | States.Disposed))
2259
if (!
GetState
(States.CheckedHost))
2298
return
GetState
(States.HostedInDialog);
2421
get =>
GetState
(States.IsAccessible);
2474
return
GetState
(States.Mirrored);
2771
public bool RecreatingHandle =>
GetState
(States.Recreate);
3447
get =>
GetState
(States.UseWaitCursor);
3450
if (
GetState
(States.UseWaitCursor) != value)
3858
if (
GetState
(States.LayoutIsDirty))
4563
ObjectDisposedException.ThrowIf(
GetState
(States.Disposed), this);
4565
if (
GetState
(States.CreatingHandle))
4660
if (!ignoreVisible && (
GetState
(States.Created) || !Visible))
4779
if (
GetState
(States.OwnCtlBrush))
4802
if (
GetState
(States.Disposing))
4807
if (
GetState
(States.CreatingHandle))
5381
if (!
GetState
(States.TopLevel) && !(
5443
internal bool DesiredVisibility =>
GetState
(States.Visible);
5837
if (!
GetState
(States.TrackingMouseEvent))
6677
if (
GetState
(States.OwnCtlBrush))
7053
if (
GetState
(States.Enabled))
7425
if (
GetState
(States.ThreadMarshalPending))
7542
if (!RecreatingHandle &&
GetState
(States.OwnCtlBrush) && Properties.TryGetValue(s_backBrushProperty, out HBRUSH backBrush))
8053
||
GetState
(States.ExceptionWhilePainting))
8347
if (
GetState
(States.ExceptionWhilePainting))
8489
if (ParentInternal is not null && ParentInternal.
GetState
(States.LayoutIsDirty))
9242
bool created =
GetState
(States.Created);
9244
if (
GetState
(States.TrackingMouseEvent))
9476
if (
GetState
(States.TrackingMouseEvent))
9525
if (LayoutSuspendCount == 0 &&
GetState
(States.LayoutDeferred) && performLayout)
9564
if (accept ==
GetState
(States.DropTarget) || !IsHandleCreated)
10184
if (!
GetState
(States.SizeLockedByOS))
10596
private bool ShouldSerializeEnabled() => !
GetState
(States.Enabled);
11436
if (!RecreatingHandle && !Disposing && !IsDisposed &&
GetState
(States.TrackingMouseEvent))
11691
&&
GetState
(States.MousePressed)
11697
if (!
GetState
(States.DoubleClickFired))
12109
bool oldVisibleBit =
GetState
(States.Visible);
12147
if (!
GetState
(States.ParentRecreating) && (oldVisibleProperty != visible))
12714
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)
718
if (RecreatingHandle ||
GetState
(States.CreatingHandle))
2449
if (
GetState
(States.Disposed))
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3211
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)
1464
bool oldVisibleBit =
GetState
(States.Visible);
1555
public bool Modal =>
GetState
(States.Modal);
3258
if (
GetState
(States.CreatingHandle))
3843
return
GetState
(States.Visible) && IsHandleCreated;
4308
if (
GetState
(States.Modal))
6047
if (
GetState
(States.Modal))
6980
if (!
GetState
(States.Recreate))