2 writes to _host
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ControlDesigner.cs (2)
931
_host
= GetService<IDesignerHost>();
1673
_host
??= GetService<IDesignerHost>();
20 references to _host
System.Windows.Forms.Design (20)
System\Windows\Forms\Design\ControlDesigner.cs (20)
216
Debug.Assert(
_host
is not null);
217
if (AutoResizeHandles && Component !=
_host
?.RootComponent)
495
if (e.Control is null ||
_host
is null ||
_host
.GetDesigner(e.Control) is ControlDesigner)
688
if (parent is not null &&
_host
is not null &&
_host
.RootComponent != Component)
864
if (child is null ||
_host
is null ||
_host
.GetDesigner(child) is ControlDesigner)
971
if (Inherited &&
_host
is not null
972
&&
_host
.RootComponent != component
981
if ((
_host
is null ||
_host
.RootComponent != component) && ForceVisible)
1427
if (
_host
?.GetDesigner(comp) is ControlDesigner des && (des.SelectionRules & SelectionRules.Moveable) != 0)
1462
object? designer =
_host
?.GetDesigner(parent);
1491
object? designer =
_host
?.GetDesigner(parent);
1520
object? designer =
_host
?.GetDesigner(parent);
2174
if (
_host
is not null &&
_host
.RootComponent is not null &&
_host
.GetDesigner(
_host
.RootComponent) is IRootDesigner rd)