123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using System.Collections;
- namespace System.Windows.Forms
- {
- public partial class TabControl
- {
- public class TabPageCollection : WrappedCollection
- {
- protected internal ControlCollection items;
- protected override IList InnerList => items;
- public TabPage this[int index]
- {
- get => items[index] as TabPage;
- }
- public int Add(TabPage obj) => items.Add(obj);
- public void AddRange(TabPage[] objects)
- {
- foreach (TabPage obj in objects)
- Add(obj);
- }
- public void Insert(int index, TabPage obj) => items.Insert(index, obj);
- public void Remove(TabPage obj) => items.Remove(obj);
- public void RemoveAt(int index) => items.RemoveAt(index);
- public void Clear() => items.Clear();
- public int IndexOf(TabPage obj) => items.IndexOf(obj);
- public bool Contains(TabPage obj) => items.Contains(obj);
- internal TabPageCollection(ControlCollection items)
- {
- this.items = items;
- }
- }
- }
- }
|