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)
160
ToolStripItemCollection collection =
new
(toolStrip, items);
171
return new
ToolStripItemCollection
(toolStrip, toolStripItems);
259
ToolStripItemCollection collection =
new
(toolStrip, items);
272
ToolStripItemCollection collection =
new
(toolStrip, items);
285
ToolStripItemCollection collection =
new
(toolStrip, items);
318
ToolStripItemCollection collection =
new
(toolStrip2, Array.Empty<ToolStripItem>());
331
ToolStripItemCollection collection =
new
(toolStrip, items);
348
ToolStripItemCollection collection =
new
(toolStrip2, Array.Empty<ToolStripItem>());
361
ToolStripItemCollection collection =
new
(toolStrip, Array.Empty<ToolStripItem>());
374
ToolStripItemCollection collection =
new
(toolStrip, Array.Empty<ToolStripItem>());
61 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)
3554
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 (8)
System\Windows\Forms\Design\BindingNavigatorDesigner.cs (1)
117
private void SiteItems(IDesignerHost? host,
ToolStripItemCollection
items)
System\Windows\Forms\Design\ToolStripCollectionEditor.cs (1)
11
public ToolStripCollectionEditor() : base(typeof(
ToolStripItemCollection
))
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (3)
46
private
ToolStripItemCollection
_targetToolStripCollection;
119
internal
ToolStripItemCollection
Collection
430
Collection = (
ToolStripItemCollection
)EditValue;
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)
384
public new
ToolStripItemCollection
DisplayedItems => base.DisplayedItems;
System\Windows\Forms\MenuStripTests.cs (1)
880
public new
ToolStripItemCollection
DisplayedItems => base.DisplayedItems;
System\Windows\Forms\StatusStripTests.cs (1)
1302
public new
ToolStripItemCollection
DisplayedItems => base.DisplayedItems;
System\Windows\Forms\ToolStripDropDownTests.cs (2)
4886
ToolStripItemCollection
items = toolStrip.DropDown.DisplayedItems;
5120
public new
ToolStripItemCollection
DisplayedItems => base.DisplayedItems;
System\Windows\Forms\ToolStripItemCollectionTests.cs (21)
45
ToolStripItemCollection
collection = toolStrip.DropDownItems;
84
var
collection = toolStrip.DropDown.DisplayedItems;
98
var
collection = toolStrip.DropDown.DisplayedItems;
134
ToolStripItemCollection
itemCollection = new(toolStrip,
160
ToolStripItemCollection
collection = new(toolStrip, items);
167
private
ToolStripItemCollection
CreateToolStripItemCollectionWithItems(params (string Key, string Name)[] items)
177
ToolStripItemCollection
collection = CreateToolStripItemCollectionWithItems(
189
ToolStripItemCollection
collection = CreateToolStripItemCollectionWithItems(
202
ToolStripItemCollection
collection = CreateToolStripItemCollectionWithItems(
214
ToolStripItemCollection
collection = CreateToolStripItemCollectionWithItems(
230
ToolStripItemCollection
collection = CreateToolStripItemCollectionWithItems(
245
ToolStripItemCollection
collection = CreateToolStripItemCollectionWithItems(
259
ToolStripItemCollection
collection = new(toolStrip, items);
272
ToolStripItemCollection
collection = new(toolStrip, items);
285
ToolStripItemCollection
collection = new(toolStrip, items);
299
ToolStripItemCollection
collection = CreateToolStripItemCollectionWithItems(
318
ToolStripItemCollection
collection = new(toolStrip2, Array.Empty<ToolStripItem>());
331
ToolStripItemCollection
collection = new(toolStrip, items);
348
ToolStripItemCollection
collection = new(toolStrip2, Array.Empty<ToolStripItem>());
361
ToolStripItemCollection
collection = new(toolStrip, Array.Empty<ToolStripItem>());
374
ToolStripItemCollection
collection = new(toolStrip, Array.Empty<ToolStripItem>());
System\Windows\Forms\ToolStripTests.cs (2)
7472
public new
ToolStripItemCollection
DisplayedItems => base.DisplayedItems;
7525
public new
ToolStripItemCollection
DisplayedItems => base.DisplayedItems;