1 write to _realCollection
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
20
public DesignerControlCollection(Control owner) : base(owner) =>
_realCollection
= owner.Controls;
22 references to _realCollection
System.Windows.Forms.Design (22)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (22)
22
public override int Count =>
_realCollection
.Count;
30
public new bool IsReadOnly =>
_realCollection
.IsReadOnly;
32
int IList.Add(object control) => ((IList)
_realCollection
).Add(control);
34
public override void Add(Control c) =>
_realCollection
.Add(c);
36
public override void AddRange(params Control[] controls) =>
_realCollection
.AddRange(controls);
38
bool IList.Contains(object control) => ((IList)
_realCollection
).Contains(control);
40
public new void CopyTo(Array dest, int index) =>
_realCollection
.CopyTo(dest, index);
42
public override bool Equals(object other) =>
_realCollection
.Equals(other);
44
public new IEnumerator GetEnumerator() =>
_realCollection
.GetEnumerator();
46
public override int GetHashCode() =>
_realCollection
.GetHashCode();
48
int IList.IndexOf(object control) => ((IList)
_realCollection
).IndexOf(control);
50
void IList.Insert(int index, object value) => ((IList)
_realCollection
).Insert(index, value);
52
void IList.Remove(object control) => ((IList)
_realCollection
).Remove(control);
54
void IList.RemoveAt(int index) => ((IList)
_realCollection
).RemoveAt(index);
58
get => ((IList)
_realCollection
)[index];
63
=>
_realCollection
.GetChildIndex(child, throwException);
66
=>
_realCollection
.SetChildIndex(child, newIndex);
70
for (int i =
_realCollection
.Count - 1; i >= 0; i--)
72
if (
_realCollection
[i] is not null &&
73
_realCollection
[i].Site is not null &&
74
TypeDescriptor.GetAttributes(
_realCollection
[i]).Contains(InheritanceAttribute.NotInherited))
76
_realCollection
.RemoveAt(i);