2 writes to InnerList
System.Windows.Forms (2)
System\Windows\Forms\Layout\ArrangedElementCollection.cs (2)
16internal ArrangedElementCollection(List<IArrangedElement> innerList) => InnerList = innerList; 18private ArrangedElementCollection(int size) => InnerList = new List<IArrangedElement>(size);
72 references to InnerList
System.Windows.Forms (72)
System\Windows\Forms\Control.ControlCollection.cs (7)
73InnerList.Add(value); 162ccOther.InnerList.AddRange(InnerList); 166public bool Contains(Control? control) => ((IList)InnerList).Contains(control); 232public int IndexOf(Control? control) => ((IList)InnerList).IndexOf(control); 299InnerList.Remove(value); 348Control control = (Control)InnerList[index]!;
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (14)
48return (ToolStripItem)(InnerList[index]); 69return (ToolStripItem)InnerList[index]; 105int retVal = ((IList)InnerList).Add(value); 157var itemsToAdd = toolStripItems.InnerList.ToArray(); 167return InnerList.Contains(value); 298bool IList.IsFixedSize { get { return ((IList)InnerList).IsFixedSize; } } 299bool IList.Contains(object? value) { return InnerList.Contains(value); } 308get { return InnerList[index]; } 316InnerList.Insert(index, value); 336return InnerList.IndexOf(value); 420if (!InnerList.Remove(value)) 437: (ToolStripItem)InnerList[index]; 439InnerList.RemoveAt(index); 462InnerList.CopyTo(array, index);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelControlCollection.cs (2)
39InnerList.Sort(new YXComparer()); 43InnerList.Sort(new XYComparer());
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelRowCollection.cs (12)
35return (ToolStripPanelRow)(InnerList[index]); 43int retVal = ((IList)InnerList).Add(value); 91return InnerList.Contains(value); 112bool IList.IsFixedSize { get { return ((IList)InnerList).IsFixedSize; } } 113bool IList.Contains(object? value) { return InnerList.Contains(value); } 114bool IList.IsReadOnly { get { return ((IList)InnerList).IsReadOnly; } } 123get { return InnerList[index]; } 129return InnerList.IndexOf(value); 136InnerList.Insert(index, value); 148public void Remove(ToolStripPanelRow value) => InnerList.Remove(value); 150public void RemoveAt(int index) => InnerList.RemoveAt(index); 152public void CopyTo(ToolStripPanelRow[] array, int index) => InnerList.CopyTo(array, index);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.cs (12)
57_cellCollection ??= new ArrangedElementCollection(InnerList); 81int index = ((IList)InnerList).Add(control.ToolStripPanelCell); 145public override IEnumerator GetEnumerator() { return new ToolStripPanelCellToControlEnumerator(InnerList.GetEnumerator()); } 151var cell = (ToolStripPanelCell)(InnerList[index]); 162ToolStripPanelCell cell = (ToolStripPanelCell)(InnerList[i]); 174bool IList.IsFixedSize { get { return ((IList)InnerList).IsFixedSize; } } 176bool IList.Contains(object? value) { return InnerList.Contains(value); } 178bool IList.IsReadOnly { get { return ((IList)InnerList).IsReadOnly; } } 213InnerList.Insert(index, control.ToolStripPanelCell!); 276InnerList.RemoveAt(index); 288if (index >= array.Length || InnerList.Count > array.Length - index) 293for (int i = 0; i < InnerList.Count; i++)
System\Windows\Forms\Layout\ArrangedElementCollection.cs (25)
22internal virtual IArrangedElement this[int index] => InnerList[index]; 33if (InnerList[i] != other.InnerList[i]) 45foreach (object o in InnerList) 65InnerList[fromIndex] = InnerList[toIndex]; 93InnerList[toIndex] = element; 108destinationList.InnerList[--destinationIndex] = sourceList.InnerList[--sourceIndex]; 115destinationList.InnerList[destinationIndex++] = sourceList.InnerList[sourceIndex++]; 120void IList.Clear() => ((IList)InnerList).Clear(); 122bool IList.IsFixedSize => ((IList)InnerList).IsFixedSize; 124bool IList.Contains(object? value) => ((IList)InnerList).Contains(value); 126public virtual bool IsReadOnly => ((IList)InnerList).IsReadOnly; 128void IList.RemoveAt(int index) => ((IList)InnerList).RemoveAt(index); 130void IList.Remove(object? value) => ((IList)InnerList).Remove(value); 132int IList.Add(object? value) => ((IList)InnerList).Add(value); 134int IList.IndexOf(object? value) => ((IList)InnerList).IndexOf(value); 140get => InnerList[index]; 144public virtual int Count => InnerList.Count; 146object ICollection.SyncRoot => ((ICollection)InnerList).SyncRoot; 148public void CopyTo(Array array, int index) => ((ICollection)InnerList).CopyTo(array, index); 150bool ICollection.IsSynchronized => ((ICollection)InnerList).IsSynchronized; 152public virtual IEnumerator GetEnumerator() => InnerList.GetEnumerator();