15 instantiations of ToolStripItemCollection
System.Windows.Forms (5)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
714_displayedItems ??= new ToolStripItemCollection(this, false); 1047_toolStripItemCollection ??= new ToolStripItemCollection(this, true); 1374_overflowItems ??= new ToolStripItemCollection(this, false);
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflow.cs (2)
30return new ToolStripItemCollection(owner: null, itemsCollection: false); 38return new ToolStripItemCollection(owner: null, itemsCollection: false, isReadOnly: true);
System.Windows.Forms.Tests (10)
System\Windows\Forms\ToolStripItemCollectionTests.cs (10)
162ToolStripItemCollection collection = new(toolStrip, items); 173return new ToolStripItemCollection(toolStrip, toolStripItems); 261ToolStripItemCollection collection = new(toolStrip, items); 274ToolStripItemCollection collection = new(toolStrip, items); 287ToolStripItemCollection collection = new(toolStrip, items); 320ToolStripItemCollection collection = new(toolStrip2, Array.Empty<ToolStripItem>()); 333ToolStripItemCollection collection = new(toolStrip, items); 350ToolStripItemCollection collection = new(toolStrip2, Array.Empty<ToolStripItem>()); 363ToolStripItemCollection collection = new(toolStrip, Array.Empty<ToolStripItem>()); 376ToolStripItemCollection collection = new(toolStrip, Array.Empty<ToolStripItem>());
58 references to ToolStripItemCollection
System.Windows.Forms (26)
System\Windows\Forms\Controls\ToolStrips\MergeHistoryItem.cs (2)
21public ToolStripItemCollection? PreviousIndexCollection { get; set; } 23public ToolStripItemCollection? IndexCollection { get; set; }
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (9)
30private ToolStripItemCollection? _toolStripItemCollection; 33private ToolStripItemCollection? _displayedItems; 34private ToolStripItemCollection? _overflowItems; 710protected internal virtual ToolStripItemCollection DisplayedItems 1043public virtual ToolStripItemCollection Items 1370internal ToolStripItemCollection OverflowItems 3934internal virtual void ReleaseToolStripItemsProviders(ToolStripItemCollection items) 3941ToolStripItemCollection dropDownMenuItems = dropDownItem.DropDownItems; 4683internal void OnItemRemovedInternal(ToolStripItem item, ToolStripItemCollection itemCollection)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (3)
156ToolStripItemCollection items = getOverflowItem 206AccessibleObject? GetFollowingChildFragment(int index, ToolStripItemCollection items, NavigateDirection direction) 290ToolStripItemCollection items;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
244public ToolStripItemCollection DropDownItems
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
568internal override void ReleaseToolStripItemsProviders(ToolStripItemCollection items)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3550ToolStripItemCollection items = _parent.DisplayedItems;
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (2)
135public void AddRange(ToolStripItemCollection toolStripItems) 255private static void FindInternal(string key, bool searchAllChildren, ToolStripItemCollection itemsToLookIn, List<ToolStripItem> foundItems)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
1031private static ToolStripItem? FindMatch(ToolStripItem source, ToolStripItemCollection destinationItems) 1145private static void MergeRecursive(ToolStripItem source, ToolStripItemCollection destinationItems, Stack<MergeHistoryItem> history)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemAccessibleObject.cs (2)
63ToolStripItemCollection? displayedItems = _owningToolStripMenuItem.ParentInternal?.DisplayedItems; 98ToolStripItemCollection? displayedItems = _owningToolStripMenuItem.ParentInternal?.DisplayedItems;
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflow.cs (3)
20protected internal override ToolStripItemCollection DisplayedItems 26ToolStripItemCollection items = ParentToolStrip.OverflowItems; 34public override ToolStripItemCollection Items
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\BindingNavigatorDesigner.cs (1)
117private void SiteItems(IDesignerHost? host, ToolStripItemCollection items)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (3)
1826ToolStripItemCollection collection = wb.Items; 1969ToolStripItemCollection collection = parent.Items; 1974ToolStripItemCollection collection = parent.Items;
System.Windows.Forms.Tests (28)
System\Windows\Forms\MdiControlStripTests.cs (1)
382public new ToolStripItemCollection DisplayedItems => base.DisplayedItems;
System\Windows\Forms\MenuStripTests.cs (1)
878public new ToolStripItemCollection DisplayedItems => base.DisplayedItems;
System\Windows\Forms\StatusStripTests.cs (1)
1300public new ToolStripItemCollection DisplayedItems => base.DisplayedItems;
System\Windows\Forms\ToolStripDropDownTests.cs (2)
4884ToolStripItemCollection items = toolStrip.DropDown.DisplayedItems; 5118public new ToolStripItemCollection DisplayedItems => base.DisplayedItems;
System\Windows\Forms\ToolStripItemCollectionTests.cs (21)
47ToolStripItemCollection collection = toolStrip.DropDownItems; 86var collection = toolStrip.DropDown.DisplayedItems; 100var collection = toolStrip.DropDown.DisplayedItems; 136ToolStripItemCollection itemCollection = new(toolStrip, 162ToolStripItemCollection collection = new(toolStrip, items); 169private ToolStripItemCollection CreateToolStripItemCollectionWithItems(params (string Key, string Name)[] items) 179ToolStripItemCollection collection = CreateToolStripItemCollectionWithItems( 191ToolStripItemCollection collection = CreateToolStripItemCollectionWithItems( 204ToolStripItemCollection collection = CreateToolStripItemCollectionWithItems( 216ToolStripItemCollection collection = CreateToolStripItemCollectionWithItems( 232ToolStripItemCollection collection = CreateToolStripItemCollectionWithItems( 247ToolStripItemCollection collection = CreateToolStripItemCollectionWithItems( 261ToolStripItemCollection collection = new(toolStrip, items); 274ToolStripItemCollection collection = new(toolStrip, items); 287ToolStripItemCollection collection = new(toolStrip, items); 301ToolStripItemCollection collection = CreateToolStripItemCollectionWithItems( 320ToolStripItemCollection collection = new(toolStrip2, Array.Empty<ToolStripItem>()); 333ToolStripItemCollection collection = new(toolStrip, items); 350ToolStripItemCollection collection = new(toolStrip2, Array.Empty<ToolStripItem>()); 363ToolStripItemCollection collection = new(toolStrip, Array.Empty<ToolStripItem>()); 376ToolStripItemCollection collection = new(toolStrip, Array.Empty<ToolStripItem>());
System\Windows\Forms\ToolStripTests.cs (2)
7501public new ToolStripItemCollection DisplayedItems => base.DisplayedItems; 7554public new ToolStripItemCollection DisplayedItems => base.DisplayedItems;