15 instantiations of ToolStripItemCollection
System.Windows.Forms (5)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
713
_displayedItems ??= new
ToolStripItemCollection
(this, false);
1046
_toolStripItemCollection ??= new
ToolStripItemCollection
(this, true);
1373
_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)
162
ToolStripItemCollection collection =
new
(toolStrip, items);
173
return new
ToolStripItemCollection
(toolStrip, toolStripItems);
261
ToolStripItemCollection collection =
new
(toolStrip, items);
274
ToolStripItemCollection collection =
new
(toolStrip, items);
287
ToolStripItemCollection collection =
new
(toolStrip, items);
320
ToolStripItemCollection collection =
new
(toolStrip2, Array.Empty<ToolStripItem>());
333
ToolStripItemCollection collection =
new
(toolStrip, items);
350
ToolStripItemCollection collection =
new
(toolStrip2, Array.Empty<ToolStripItem>());
363
ToolStripItemCollection collection =
new
(toolStrip, Array.Empty<ToolStripItem>());
376
ToolStripItemCollection collection =
new
(toolStrip, Array.Empty<ToolStripItem>());
57 references to ToolStripItemCollection
System.Windows.Forms (25)
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 (8)
29
private
ToolStripItemCollection
? _toolStripItemCollection;
32
private
ToolStripItemCollection
? _displayedItems;
33
private
ToolStripItemCollection
? _overflowItems;
709
protected internal virtual
ToolStripItemCollection
DisplayedItems
1042
public virtual
ToolStripItemCollection
Items
1369
internal
ToolStripItemCollection
OverflowItems
3934
internal virtual void ReleaseToolStripItemsProviders(
ToolStripItemCollection
items)
3941
ToolStripItemCollection
dropDownMenuItems = dropDownItem.DropDownItems;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (3)
156
ToolStripItemCollection
items = getOverflowItem
206
AccessibleObject? GetFollowingChildFragment(int index,
ToolStripItemCollection
items, NavigateDirection direction)
290
ToolStripItemCollection
items;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
244
public
ToolStripItemCollection
DropDownItems
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
568
internal override void ReleaseToolStripItemsProviders(
ToolStripItemCollection
items)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3552
ToolStripItemCollection
items = _parent.DisplayedItems;
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (2)
135
public void AddRange(
ToolStripItemCollection
toolStripItems)
255
private static void FindInternal(string key, bool searchAllChildren,
ToolStripItemCollection
itemsToLookIn, List<ToolStripItem> foundItems)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
1030
private static ToolStripItem? FindMatch(ToolStripItem source,
ToolStripItemCollection
destinationItems)
1144
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)
1826
ToolStripItemCollection
collection = wb.Items;
1969
ToolStripItemCollection
collection = parent.Items;
1974
ToolStripItemCollection
collection = parent.Items;
System.Windows.Forms.Tests (28)
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 (21)
47
ToolStripItemCollection
collection = toolStrip.DropDownItems;
86
var
collection = toolStrip.DropDown.DisplayedItems;
100
var
collection = toolStrip.DropDown.DisplayedItems;
136
ToolStripItemCollection
itemCollection = new(toolStrip,
162
ToolStripItemCollection
collection = new(toolStrip, items);
169
private
ToolStripItemCollection
CreateToolStripItemCollectionWithItems(params (string Key, string Name)[] items)
179
ToolStripItemCollection
collection = CreateToolStripItemCollectionWithItems(
191
ToolStripItemCollection
collection = CreateToolStripItemCollectionWithItems(
204
ToolStripItemCollection
collection = CreateToolStripItemCollectionWithItems(
216
ToolStripItemCollection
collection = CreateToolStripItemCollectionWithItems(
232
ToolStripItemCollection
collection = CreateToolStripItemCollectionWithItems(
247
ToolStripItemCollection
collection = CreateToolStripItemCollectionWithItems(
261
ToolStripItemCollection
collection = new(toolStrip, items);
274
ToolStripItemCollection
collection = new(toolStrip, items);
287
ToolStripItemCollection
collection = new(toolStrip, items);
301
ToolStripItemCollection
collection = CreateToolStripItemCollectionWithItems(
320
ToolStripItemCollection
collection = new(toolStrip2, Array.Empty<ToolStripItem>());
333
ToolStripItemCollection
collection = new(toolStrip, items);
350
ToolStripItemCollection
collection = new(toolStrip2, Array.Empty<ToolStripItem>());
363
ToolStripItemCollection
collection = new(toolStrip, Array.Empty<ToolStripItem>());
376
ToolStripItemCollection
collection = new(toolStrip, Array.Empty<ToolStripItem>());
System\Windows\Forms\ToolStripTests.cs (2)
7470
public new
ToolStripItemCollection
DisplayedItems => base.DisplayedItems;
7523
public new
ToolStripItemCollection
DisplayedItems => base.DisplayedItems;