2 writes to ChildControls
System.Windows.Forms (2)
System\Windows\Forms\Control.cs (2)
1536public ControlCollection Controls => ChildControls ??= CreateControlsInstance(); 5050ChildControls = null;
37 references to ChildControls
System.Windows.Forms (37)
System\Windows\Forms\Control.cs (36)
2411public bool HasChildren => ChildControls is not null && ChildControls.Count > 0; 3626if (ChildControls is { } children) 4882if (ChildControls is { } children) 5041if (ChildControls is { } children) 5076if (ChildControls is { } children) 5742if (ChildControls is not { } children) 5832if (ChildControls is { } children && children.Count > 0 && (ctl == this || !IsFocusManagingContainerControl(ctl))) 5853ControlCollection? parentChildren = p?.ChildControls; 5912ControlCollection? siblings = parent.ChildControls ?? throw new InvalidOperationException( 5985ControlCollection? children = ctl.ChildControls; 5993children = ctl.ChildControls; 6914if (ChildControls is { } children) 6938if (ChildControls is { } children) 6981if (ChildControls is { } children) 7025if (ChildControls is { } children) 7047if (ChildControls is { } children) 7128if (ChildControls is { } children 7246if (ChildControls is { } children) 7287if (ChildControls is { } children) 7317if (ChildControls is { } children) 7345if (ChildControls is { } children) 7441else if (ChildControls is { } children) 7750if (DesiredVisibility && ChildControls is { } children) 7852if (ChildControls is { } children) 7872if (ChildControls is { } children) 8315if (ChildControls is { } children) 8709if (ChildControls is { } children) 8754if (ChildControls is { } children) 8787else if (ChildControls is { } children) 9987if (ChildControls is { } children && children.Count > 0) 10270if (ChildControls is { } children) 10359if (ScaleChildren && ChildControls is { } children) 10429if (!ScaleChildren || ChildControls is not { } children) 10643if (ChildControls is { } children) 13436ArrangedElementCollection IArrangedElement.Children => ChildControls ?? ArrangedElementCollection.Empty;
System\Windows\Forms\SuspendPaintingScope.cs (1)
178if (control.ChildControls is not { } children)