15 instantiations of ToolStripItemCollection
System.Windows.Forms (5)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
716_displayedItems ??= new ToolStripItemCollection(this, false); 1049_toolStripItemCollection ??= new ToolStripItemCollection(this, true); 1376_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)
137ToolStripItemCollection collection = new(toolStrip, items); 148return new ToolStripItemCollection(toolStrip, toolStripItems); 236ToolStripItemCollection collection = new(toolStrip, items); 249ToolStripItemCollection collection = new(toolStrip, items); 262ToolStripItemCollection collection = new(toolStrip, items); 295ToolStripItemCollection collection = new(toolStrip2, Array.Empty<ToolStripItem>()); 308ToolStripItemCollection collection = new(toolStrip, items); 325ToolStripItemCollection collection = new(toolStrip2, Array.Empty<ToolStripItem>()); 338ToolStripItemCollection collection = new(toolStrip, Array.Empty<ToolStripItem>()); 351ToolStripItemCollection collection = new(toolStrip, Array.Empty<ToolStripItem>());
57 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; 712protected internal virtual ToolStripItemCollection DisplayedItems 1045public virtual ToolStripItemCollection Items 1372internal ToolStripItemCollection OverflowItems 3935internal virtual void ReleaseToolStripItemsProviders(ToolStripItemCollection items) 3942ToolStripItemCollection dropDownMenuItems = dropDownItem.DropDownItems; 4687internal void OnItemRemovedInternal(ToolStripItem item, ToolStripItemCollection itemCollection)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (3)
157ToolStripItemCollection items = getOverflowItem 207AccessibleObject? GetFollowingChildFragment(int index, ToolStripItemCollection items, NavigateDirection direction) 291ToolStripItemCollection items;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
244public ToolStripItemCollection DropDownItems
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
572internal override void ReleaseToolStripItemsProviders(ToolStripItemCollection items)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3558ToolStripItemCollection items = _parent.DisplayedItems;
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (2)
135public void AddRange(ToolStripItemCollection toolStripItems) 248private 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)
1843ToolStripItemCollection collection = wb.Items; 1986ToolStripItemCollection collection = parent.Items; 1991ToolStripItemCollection collection = parent.Items;
System.Windows.Forms.Tests (27)
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 (20)
47ToolStripItemCollection collection = toolStrip.DropDownItems; 86var collection = toolStrip.DropDown.DisplayedItems; 100var collection = toolStrip.DropDown.DisplayedItems; 137ToolStripItemCollection collection = new(toolStrip, items); 144private ToolStripItemCollection CreateToolStripItemCollectionWithItems(params (string Key, string Name)[] items) 154ToolStripItemCollection collection = CreateToolStripItemCollectionWithItems( 166ToolStripItemCollection collection = CreateToolStripItemCollectionWithItems( 179ToolStripItemCollection collection = CreateToolStripItemCollectionWithItems( 191ToolStripItemCollection collection = CreateToolStripItemCollectionWithItems( 207ToolStripItemCollection collection = CreateToolStripItemCollectionWithItems( 222ToolStripItemCollection collection = CreateToolStripItemCollectionWithItems( 236ToolStripItemCollection collection = new(toolStrip, items); 249ToolStripItemCollection collection = new(toolStrip, items); 262ToolStripItemCollection collection = new(toolStrip, items); 276ToolStripItemCollection collection = CreateToolStripItemCollectionWithItems( 295ToolStripItemCollection collection = new(toolStrip2, Array.Empty<ToolStripItem>()); 308ToolStripItemCollection collection = new(toolStrip, items); 325ToolStripItemCollection collection = new(toolStrip2, Array.Empty<ToolStripItem>()); 338ToolStripItemCollection collection = new(toolStrip, Array.Empty<ToolStripItem>()); 351ToolStripItemCollection collection = new(toolStrip, Array.Empty<ToolStripItem>());
System\Windows\Forms\ToolStripTests.cs (2)
7501public new ToolStripItemCollection DisplayedItems => base.DisplayedItems; 7554public new ToolStripItemCollection DisplayedItems => base.DisplayedItems;