2 writes to ChildControls
System.Windows.Forms (2)
System\Windows\Forms\Control.cs (2)
1545public ControlCollection Controls => ChildControls ??= CreateControlsInstance(); 5059ChildControls = null;
38 references to ChildControls
System.Windows.Forms (38)
System\Windows\Forms\Control.cs (37)
2420public bool HasChildren => ChildControls is not null && ChildControls.Count > 0; 3635if (ChildControls is { } children) 4891if (ChildControls is { } children) 5050if (ChildControls is { } children) 5085if (ChildControls is { } children) 5751if (ChildControls is not { } children) 5841if (ChildControls is { } children && children.Count > 0 && (ctl == this || !IsFocusManagingContainerControl(ctl))) 5862ControlCollection? parentChildren = p?.ChildControls; 5921ControlCollection? siblings = parent.ChildControls ?? throw new InvalidOperationException( 5994ControlCollection? children = ctl.ChildControls; 6002children = ctl.ChildControls; 6923if (ChildControls is { } children) 6947if (ChildControls is { } children) 6990if (ChildControls is { } children) 7034if (ChildControls is { } children) 7056if (ChildControls is { } children) 7137if (ChildControls is { } children 7255if (ChildControls is { } children) 7296if (ChildControls is { } children) 7326if (ChildControls is { } children) 7354if (ChildControls is { } children) 7450else if (ChildControls is { } children) 7506else if (ChildControls is { } children) 7808if (DesiredVisibility && ChildControls is { } children) 7910if (ChildControls is { } children) 7930if (ChildControls is { } children) 8373if (ChildControls is { } children) 8767if (ChildControls is { } children) 8812if (ChildControls is { } children) 8845else if (ChildControls is { } children) 10045if (ChildControls is { } children && children.Count > 0) 10328if (ChildControls is { } children) 10417if (ScaleChildren && ChildControls is { } children) 10487if (!ScaleChildren || ChildControls is not { } children) 10701if (ChildControls is { } children) 13494ArrangedElementCollection IArrangedElement.Children => ChildControls ?? ArrangedElementCollection.Empty;
System\Windows\Forms\SuspendPaintingScope.cs (1)
178if (control.ChildControls is not { } children)