2 writes to ChildControls
System.Windows.Forms (2)
System\Windows\Forms\Control.cs (2)
1364public ControlCollection Controls => ChildControls ??= CreateControlsInstance(); 4842ChildControls = null;
32 references to ChildControls
System.Windows.Forms (32)
System\Windows\Forms\Control.cs (32)
2239public bool HasChildren => ChildControls is not null && ChildControls.Count > 0; 3454if (ChildControls is { } children) 4674if (ChildControls is { } children) 4833if (ChildControls is { } children) 4868if (ChildControls is { } children) 5525if (ChildControls is not { } children) 5615if (ChildControls is { } children && children.Count > 0 && (ctl == this || !IsFocusManagingContainerControl(ctl))) 5636ControlCollection? parentChildren = p?.ChildControls; 5695ControlCollection? siblings = parent.ChildControls ?? throw new InvalidOperationException( 5768ControlCollection? children = ctl.ChildControls; 5776children = ctl.ChildControls; 6695if (ChildControls is { } children) 6719if (ChildControls is { } children) 6762if (ChildControls is { } children) 6806if (ChildControls is { } children) 6828if (ChildControls is { } children) 6877if (ChildControls is { } children) 6918if (ChildControls is { } children) 6948if (ChildControls is { } children) 6976if (ChildControls is { } children) 7156if (DesiredVisibility && ChildControls is { } children) 7258if (ChildControls is { } children) 7278if (ChildControls is { } children) 7712if (ChildControls is { } children) 8106if (ChildControls is { } children) 9263if (ChildControls is { } children && children.Count > 0) 9547if (ChildControls is { } children) 9636if (ScaleChildren && ChildControls is { } children) 9706if (!ScaleChildren || ChildControls is not { } children) 9920if (ChildControls is { } children) 12703ArrangedElementCollection IArrangedElement.Children => ChildControls ?? ArrangedElementCollection.Empty;