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)
30
return new
ToolStripItemCollection
(owner: null, itemsCollection: false);
38
return new
ToolStripItemCollection
(owner: null, itemsCollection: false, isReadOnly: true);
System.Windows.Forms.Tests (10)
System\Windows\Forms\ToolStripItemCollectionTests.cs (10)
137
ToolStripItemCollection collection =
new
(toolStrip, items);
148
return new
ToolStripItemCollection
(toolStrip, toolStripItems);
236
ToolStripItemCollection collection =
new
(toolStrip, items);
249
ToolStripItemCollection collection =
new
(toolStrip, items);
262
ToolStripItemCollection collection =
new
(toolStrip, items);
295
ToolStripItemCollection collection =
new
(toolStrip2, Array.Empty<ToolStripItem>());
308
ToolStripItemCollection collection =
new
(toolStrip, items);
325
ToolStripItemCollection collection =
new
(toolStrip2, Array.Empty<ToolStripItem>());
338
ToolStripItemCollection collection =
new
(toolStrip, Array.Empty<ToolStripItem>());
351
ToolStripItemCollection collection =
new
(toolStrip, Array.Empty<ToolStripItem>());
57 references to ToolStripItemCollection
System.Windows.Forms (26)
System\Windows\Forms\Controls\ToolStrips\MergeHistoryItem.cs (2)
21
public
ToolStripItemCollection
? PreviousIndexCollection { get; set; }
23
public
ToolStripItemCollection
? IndexCollection { get; set; }
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (9)
30
private
ToolStripItemCollection
? _toolStripItemCollection;
33
private
ToolStripItemCollection
? _displayedItems;
34
private
ToolStripItemCollection
? _overflowItems;
712
protected internal virtual
ToolStripItemCollection
DisplayedItems
1045
public virtual
ToolStripItemCollection
Items
1372
internal
ToolStripItemCollection
OverflowItems
3935
internal virtual void ReleaseToolStripItemsProviders(
ToolStripItemCollection
items)
3942
ToolStripItemCollection
dropDownMenuItems = dropDownItem.DropDownItems;
4687
internal void OnItemRemovedInternal(ToolStripItem item,
ToolStripItemCollection
itemCollection)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (3)
157
ToolStripItemCollection
items = getOverflowItem
207
AccessibleObject? GetFollowingChildFragment(int index,
ToolStripItemCollection
items, NavigateDirection direction)
291
ToolStripItemCollection
items;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
244
public
ToolStripItemCollection
DropDownItems
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
572
internal override void ReleaseToolStripItemsProviders(
ToolStripItemCollection
items)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3558
ToolStripItemCollection
items = _parent.DisplayedItems;
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (2)
135
public void AddRange(
ToolStripItemCollection
toolStripItems)
248
private static void FindInternal(string key, bool searchAllChildren,
ToolStripItemCollection
itemsToLookIn, List<ToolStripItem> foundItems)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
1031
private static ToolStripItem? FindMatch(ToolStripItem source,
ToolStripItemCollection
destinationItems)
1145
private static void MergeRecursive(ToolStripItem source,
ToolStripItemCollection
destinationItems, Stack<MergeHistoryItem> history)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemAccessibleObject.cs (2)
63
ToolStripItemCollection
? displayedItems = _owningToolStripMenuItem.ParentInternal?.DisplayedItems;
98
ToolStripItemCollection
? displayedItems = _owningToolStripMenuItem.ParentInternal?.DisplayedItems;
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflow.cs (3)
20
protected internal override
ToolStripItemCollection
DisplayedItems
26
ToolStripItemCollection
items = ParentToolStrip.OverflowItems;
34
public override
ToolStripItemCollection
Items
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\BindingNavigatorDesigner.cs (1)
117
private void SiteItems(IDesignerHost? host,
ToolStripItemCollection
items)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (3)
1843
ToolStripItemCollection
collection = wb.Items;
1986
ToolStripItemCollection
collection = parent.Items;
1991
ToolStripItemCollection
collection = parent.Items;
System.Windows.Forms.Tests (27)
System\Windows\Forms\MdiControlStripTests.cs (1)
382
public new
ToolStripItemCollection
DisplayedItems => base.DisplayedItems;
System\Windows\Forms\MenuStripTests.cs (1)
878
public new
ToolStripItemCollection
DisplayedItems => base.DisplayedItems;
System\Windows\Forms\StatusStripTests.cs (1)
1300
public new
ToolStripItemCollection
DisplayedItems => base.DisplayedItems;
System\Windows\Forms\ToolStripDropDownTests.cs (2)
4884
ToolStripItemCollection
items = toolStrip.DropDown.DisplayedItems;
5118
public new
ToolStripItemCollection
DisplayedItems => base.DisplayedItems;
System\Windows\Forms\ToolStripItemCollectionTests.cs (20)
47
ToolStripItemCollection
collection = toolStrip.DropDownItems;
86
var
collection = toolStrip.DropDown.DisplayedItems;
100
var
collection = toolStrip.DropDown.DisplayedItems;
137
ToolStripItemCollection
collection = new(toolStrip, items);
144
private
ToolStripItemCollection
CreateToolStripItemCollectionWithItems(params (string Key, string Name)[] items)
154
ToolStripItemCollection
collection = CreateToolStripItemCollectionWithItems(
166
ToolStripItemCollection
collection = CreateToolStripItemCollectionWithItems(
179
ToolStripItemCollection
collection = CreateToolStripItemCollectionWithItems(
191
ToolStripItemCollection
collection = CreateToolStripItemCollectionWithItems(
207
ToolStripItemCollection
collection = CreateToolStripItemCollectionWithItems(
222
ToolStripItemCollection
collection = CreateToolStripItemCollectionWithItems(
236
ToolStripItemCollection
collection = new(toolStrip, items);
249
ToolStripItemCollection
collection = new(toolStrip, items);
262
ToolStripItemCollection
collection = new(toolStrip, items);
276
ToolStripItemCollection
collection = CreateToolStripItemCollectionWithItems(
295
ToolStripItemCollection
collection = new(toolStrip2, Array.Empty<ToolStripItem>());
308
ToolStripItemCollection
collection = new(toolStrip, items);
325
ToolStripItemCollection
collection = new(toolStrip2, Array.Empty<ToolStripItem>());
338
ToolStripItemCollection
collection = new(toolStrip, Array.Empty<ToolStripItem>());
351
ToolStripItemCollection
collection = new(toolStrip, Array.Empty<ToolStripItem>());
System\Windows\Forms\ToolStripTests.cs (2)
7501
public new
ToolStripItemCollection
DisplayedItems => base.DisplayedItems;
7554
public new
ToolStripItemCollection
DisplayedItems => base.DisplayedItems;