182 references to DropDownItems
Accessibility_Core_App (16)
Menu_Toolbars_controls.Designer.cs (9)
130
menuStripToolStripMenuItem.
DropDownItems
.AddRange(new ToolStripItem[] { item1ToolStripMenuItem });
143
shortCutsToolStripMenuItem.
DropDownItems
.AddRange(new ToolStripItem[] { item2ToolStripMenuItem });
156
fileToolStripMenuItem.
DropDownItems
.AddRange(new ToolStripItem[] { newToolStripMenuItem, openToolStripMenuItem, toolStripSeparator, saveToolStripMenuItem, saveAsToolStripMenuItem, toolStripSeparator1, printToolStripMenuItem, printPreviewToolStripMenuItem, toolStripSeparator2, exitToolStripMenuItem });
235
editToolStripMenuItem.
DropDownItems
.AddRange(new ToolStripItem[] { undoToolStripMenuItem, redoToolStripMenuItem, toolStripSeparator3, cutToolStripMenuItem, copyToolStripMenuItem, pasteToolStripMenuItem, toolStripSeparator4, selectAllToolStripMenuItem });
300
toolsToolStripMenuItem.
DropDownItems
.AddRange(new ToolStripItem[] { customizeToolStripMenuItem, optionsToolStripMenuItem });
320
helpToolStripMenuItem.
DropDownItems
.AddRange(new ToolStripItem[] { contentsToolStripMenuItem, indexToolStripMenuItem, searchToolStripMenuItem, toolStripSeparator5, aboutToolStripMenuItem });
357
toolStripMenuItem1.
DropDownItems
.AddRange(new ToolStripItem[] { uncheckedCheckOnClickToolStripMenuItem, checkCheckOnClickToolStripMenuItem, checkedCheckOnClickFToolStripMenuItem, indeterminateToolStripMenuItem, indeterminateCheckOnClickFToolStripMenuItem });
434
toolStripDropDownButton1.
DropDownItems
.AddRange(new ToolStripItem[] { toolStripSeparator9, toolStripTextBox3, toolStripMenuItem3 });
460
toolStripSplitButton1.
DropDownItems
.AddRange(new ToolStripItem[] { toolStripTextBox2, toolStripSeparator8, toolStripComboBox2, toolStripMenuItem2 });
ToolStripContainer.Designer.cs (7)
162
this.toolStripSplitButton1.
DropDownItems
.AddRange(new System.Windows.Forms.ToolStripItem[] {
291
this.toolStripDropDownButton1.
DropDownItems
.AddRange(new System.Windows.Forms.ToolStripItem[] {
348
this.menuStripToolStripMenuItem.
DropDownItems
.AddRange(new System.Windows.Forms.ToolStripItem[] {
364
this.fileToolStripMenuItem.
DropDownItems
.AddRange(new System.Windows.Forms.ToolStripItem[] {
449
this.editToolStripMenuItem.
DropDownItems
.AddRange(new System.Windows.Forms.ToolStripItem[] {
517
this.toolsToolStripMenuItem.
DropDownItems
.AddRange(new System.Windows.Forms.ToolStripItem[] {
539
this.helpToolStripMenuItem.
DropDownItems
.AddRange(new System.Windows.Forms.ToolStripItem[] {
DesignSurface (5)
MainForm.cs (2)
312
toolStripMenuItem1.
DropDownItems
.Add("DropDownItem1");
313
toolStripMenuItem2.
DropDownItems
.Add("DropDownItem12");
MainForm.Designer.cs (3)
176
this.editToolStripMenuItem.
DropDownItems
.AddRange(new System.Windows.Forms.ToolStripItem[] {
264
this.toolStripMenuItemTools.
DropDownItems
.AddRange(new System.Windows.Forms.ToolStripItem[] {
279
this.helpToolStripMenuItem.
DropDownItems
.AddRange(new System.Windows.Forms.ToolStripItem[] {
System.Windows.Forms (30)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
3939
if (toolStripItem is ToolStripDropDownItem dropDownItem && dropDownItem.
DropDownItems
.Count > 0)
3941
ToolStripItemCollection dropDownMenuItems = dropDownItem.
DropDownItems
;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (3)
16
[DefaultProperty(nameof(
DropDownItems
))]
50
DropDownItems
.AddRange(dropDownItems);
708
if (_dropDown.IsAutoGenerated &&
DropDownItems
.Count <= 0)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItemAccessibleObject.cs (7)
125
if (_owner.
DropDownItems
is null)
130
for (int i = 0; i < _owner.
DropDownItems
.Count; i++)
132
if (_owner.
DropDownItems
[i].Available && child.Owner == _owner.
DropDownItems
[i])
147
if (_owner.
DropDownItems
is null)
153
for (int i = 0; i < _owner.
DropDownItems
.Count; i++)
155
if (_owner.
DropDownItems
[i].Available)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (1)
278
FindInternal(key, searchAllChildren, item.
DropDownItems
, foundItems);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (6)
1160
if (item is ToolStripDropDownItem tsddownDest && source is ToolStripDropDownItem tsddownSrc && tsddownSrc.
DropDownItems
.Count != 0)
1162
int originalCount = tsddownSrc.
DropDownItems
.Count;
1175
MergeRecursive(tsddownSrc.
DropDownItems
[itemToLookAt], tsddownDest.
DropDownItems
, history);
1177
int numberOfItemsMerged = lastCount - tsddownSrc.
DropDownItems
.Count;
1179
lastCount = tsddownSrc.
DropDownItems
.Count;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObject.cs (1)
98
return _owningToolStripSplitButton.
DropDownItems
.Count;
System\Windows\Forms\Form.cs (4)
6230
numWindowListItems = MdiWindowListStrip.MergedMenu.MdiWindowListItem.
DropDownItems
.Count;
6240
Debug.Assert(numWindowListItems == MdiWindowListStrip.MergedMenu.MdiWindowListItem.
DropDownItems
.Count, "Calling RevertMerge modified the mdiwindowlistitem");
6287
int nSubItems = sourceMenuStrip.MdiWindowListItem.
DropDownItems
.Count;
6289
!(sourceMenuStrip.MdiWindowListItem.
DropDownItems
[nSubItems - 1] is ToolStripSeparator));
System\Windows\Forms\MDI\MdiWindowListStrip.cs (4)
75
mergeItem.
DropDownItems
.Clear();
88
mergeItem.
DropDownItems
.Add(separator);
131
mergeItem.
DropDownItems
.Add(windowListItem);
146
mergeItem.
DropDownItems
.Add(moreWindowsMenuItem);
System\Windows\Forms\Printing\PrintPreviewDialog.cs (2)
808
_zoomToolStripSplitButton.
DropDownItems
.AddRange(
1070
foreach (ToolStripMenuItem item in _zoomToolStripSplitButton.
DropDownItems
)
System.Windows.Forms.Design (62)
System\Windows\Forms\Design\BaseContextMenuStrip.cs (1)
137
_selectionMenuItem.
DropDownItems
.Add(selectListItem);
System\Windows\Forms\Design\BindingNavigatorDesigner.cs (1)
113
SiteItems(host: host, items: dropDownItem.
DropDownItems
);
System\Windows\Forms\Design\StandardMenuStripVerb.cs (1)
194
rootItem.
DropDownItems
.Add(item);
System\Windows\Forms\Design\ToolStripDropDownItemDesigner.cs (1)
30
return item.
DropDownItems
;
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (2)
160
_alignmentToolStripMenuItem.
DropDownItems
.AddRange((ToolStripItem[])[_leftToolStripMenuItem, _rightToolStripMenuItem]);
163
_displayStyleToolStripMenuItem.
DropDownItems
.AddRange((ToolStripItem[])[_noneStyleToolStripMenuItem, _textStyleToolStripMenuItem, _imageStyleToolStripMenuItem, _imageTextStyleToolStripMenuItem]);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (5)
537
foreach (ToolStripItem item in parent.
DropDownItems
)
540
if (item is ToolStripDropDownItem dropDownItem && dropDownItem.
DropDownItems
.Count > 1 /*including TN*/)
559
foreach (ToolStripItem item in parent.
DropDownItems
)
562
if (item is ToolStripDropDownItem dropDownItem && dropDownItem.
DropDownItems
.Count > 1 /*including TN*/)
1148
foreach (ToolStripItem item in parent.
DropDownItems
)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (48)
89
foreach (ToolStripItem item in MenuItem.
DropDownItems
)
135
if (MenuItem.DropDown.IsAutoGenerated && MenuItem.
DropDownItems
.Count > 0)
141
foreach (ToolStripItem item in MenuItem.
DropDownItems
)
154
ToolStripItem[] items = new ToolStripItem[MenuItem.
DropDownItems
.Count];
155
MenuItem.
DropDownItems
.CopyTo(items, 0);
158
MenuItem.
DropDownItems
.Remove(item);
412
foreach (ToolStripItem ddItem in item.
DropDownItems
)
441
index = MenuItem.
DropDownItems
.IndexOf(_commitedEditorNode);
442
ToolStripItem editedItem = MenuItem.
DropDownItems
[index + 1];
568
index = MenuItem.
DropDownItems
.IndexOf(_typeHereNode);
595
? MenuItem.
DropDownItems
[index - 1]
596
: MenuItem.
DropDownItems
[index + 1];
602
if (MenuItem.
DropDownItems
[index] is ToolStripDropDownItem currentItem)
623
_selectionService.SetSelectedComponents(new object[] { MenuItem.
DropDownItems
[index] }, SelectionTypes.Replace);
636
int index = MenuItem.
DropDownItems
.IndexOf(_commitedEditorNode);
637
ToolStripItem editedItem = MenuItem.
DropDownItems
[index + 1];
655
MenuItem.
DropDownItems
.Remove(editedItem);
701
if (MenuItem.
DropDownItems
.Count == 0)
733
else if (_typeHereNode is not null && MenuItem.
DropDownItems
.IndexOf(_typeHereNode) == -1)
949
int index = MenuItem.
DropDownItems
.IndexOf(_commitedEditorNode);
951
if (index != -1 && MenuItem.
DropDownItems
.Count > index)
953
if (MenuItem.
DropDownItems
[index] is ToolStripDropDownItem newItem)
1068
foreach (ToolStripItem item in MenuItem.
DropDownItems
)
1160
if (ddi.DropDown.Site is not null || ddi.
DropDownItems
.Count == 1)
1274
int index = MenuItem.
DropDownItems
.IndexOf(_typeHereNode);
1359
int index = MenuItem.
DropDownItems
.IndexOf(toolItem);
1361
MenuItem.
DropDownItems
.Insert(index, _commitedEditorNode);
1693
int count = MenuItem.
DropDownItems
.Count;
1704
MenuItem.
DropDownItems
.Insert(_indexToInsertNewItem, newItem);
1712
int index = MenuItem.
DropDownItems
.IndexOf(selectedItem);
1722
MenuItem.
DropDownItems
.Insert(index + 1, newItem);
1733
MenuItem.
DropDownItems
.Insert(index, newItem);
1750
MenuItem.
DropDownItems
.Insert(count - 1, newItem);
1762
MenuItem.
DropDownItems
.Add(newItem);
1885
int itemIndex = ownerItem.
DropDownItems
.IndexOf(itemToBeDeleted);
1891
ownerItem.
DropDownItems
.Remove(itemToBeDeleted);
1907
if (ownerItem.
DropDownItems
.Count > 1)
1909
itemIndex = Math.Min(ownerItem.
DropDownItems
.Count - 1, itemIndex);
1931
IComponent targetSelection = (itemIndex == -1) ? ownerItem : ownerItem.
DropDownItems
[itemIndex];
2067
MenuItem.
DropDownItems
.Insert(0, item);
2317
if (ownerItem.
DropDownItems
.Count > 0 && ownerItem.
DropDownItems
[0] is DesignerToolStripControlHost)
2319
ownerItem.
DropDownItems
.RemoveAt(0);
2345
int index = MenuItem.
DropDownItems
.IndexOf(_commitedEditorNode);
2347
ToolStripDropDownItem editedItem = (ToolStripDropDownItem)MenuItem.
DropDownItems
[index + 1];
2376
foreach (ToolStripItem ddItem in item.
DropDownItems
)
2446
count = MenuItem.
DropDownItems
.Count;
2453
KeyboardHandlingService.SelectedDesignerControl = MenuItem.
DropDownItems
[count];
System\Windows\Forms\Design\ToolStripTemplateNode.cs (3)
1439
if (_addItemButton.
DropDownItems
.Count > 0)
1441
ItemTypeToolStripMenuItem firstItem = (ItemTypeToolStripMenuItem)_addItemButton.
DropDownItems
[0];
1451
Debug.Assert(_addItemButton.
DropDownItems
.Count > 0);
System.Windows.Forms.Design.Tests (2)
ToolStripDropDownItemDesignerTest.cs (1)
18
toolStripDropDown.
DropDownItems
.Add("123");
ToolStripMenuItemDesignerTest.cs (1)
24
toolStripDropDown.
DropDownItems
.Add("123");
System.Windows.Forms.Tests (51)
System\Windows\Forms\AccessibleObjects\ToolStripDropDownButton.ToolStripDropDownButtonAccessibleObjectTests.cs (2)
77
dropDownItem.
DropDownItems
.Add(string.Empty);
123
toolStripDropDownButton.
DropDownItems
.Should().BeEquivalentTo(dropDownItems);
System\Windows\Forms\AccessibleObjects\ToolStripDropDownItemAccessibleObjectTests.cs (2)
175
control.
DropDownItems
.Add(new SubToolStripDropDownItem() { Available = true });
193
control.
DropDownItems
.AddRange(new[] { item1, item2 });
System\Windows\Forms\AccessibleObjects\ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObjectTests.cs (10)
117
ownerItem.
DropDownItems
.Add(parentItem1);
118
ownerItem.
DropDownItems
.Add(parentItem2);
119
parentItem1.
DropDownItems
.Add(childItem1);
120
parentItem1.
DropDownItems
.Add(childItem2);
121
parentItem2.
DropDownItems
.Add(childItem3);
122
parentItem2.
DropDownItems
.Add(childItem4);
200
parentItem1.
DropDownItems
.Add(childItem1);
201
parentItem1.
DropDownItems
.Add(childItem2);
202
parentItem2.
DropDownItems
.Add(childItem3);
203
parentItem2.
DropDownItems
.Add(childItem4);
System\Windows\Forms\AccessibleObjects\ToolStripScrollButton.ToolStripScrollButtonAccessibleObjectTests.cs (7)
38
ownerItem.
DropDownItems
.Add(new ToolStripDropDownButton("Item 1"));
39
ownerItem.
DropDownItems
.Add(new ToolStripDropDownButton("Item 2"));
40
ownerItem.
DropDownItems
.Add(new ToolStripDropDownButton("Item 3"));
100
ownerItem.
DropDownItems
.Add(new ToolStripDropDownButton("Item 1"));
101
ownerItem.
DropDownItems
.Add(new ToolStripDropDownButton("Item 2"));
138
ownerItem.
DropDownItems
.Add(new ToolStripDropDownButton("Item 1"));
139
ownerItem.
DropDownItems
.Add(new ToolStripDropDownButton("Item 2"));
System\Windows\Forms\AccessibleObjects\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObjectTests.cs (5)
83
ToolStripItem item1 = toolStripSplitButton.
DropDownItems
.Add(string.Empty);
84
ToolStripItem item2 = toolStripSplitButton.
DropDownItems
.Add(string.Empty);
99
toolStripSplitButton.
DropDownItems
.Add(string.Empty);
123
ToolStripItem item1 = toolStripSplitButton.
DropDownItems
.Add(string.Empty);
124
ToolStripItem item2 = toolStripSplitButton.
DropDownItems
.Add(string.Empty);
System\Windows\Forms\ToolStripDropDownItemTests.cs (6)
341
Assert.Equal(expectedDropDownItems, item.
DropDownItems
.Cast<ToolStripItem>());
342
Assert.Same(item.
DropDownItems
, item.
DropDownItems
);
482
Assert.Empty(item.
DropDownItems
);
483
Assert.Same(item.
DropDownItems
, item.
DropDownItems
);
System\Windows\Forms\ToolStripItemCollectionTests.cs (9)
44
child3.
DropDownItems
.Add(grandchild1);
45
child3.
DropDownItems
.Add(grandchild2);
46
child3.
DropDownItems
.Add(grandchild3);
47
ToolStripItemCollection collection = toolStrip.
DropDownItems
;
112
contextMenuStrip.Items.AddRange(toolStripDropDownButton.
DropDownItems
);
116
toolStripDropDownButton.
DropDownItems
.Add("a");
117
toolStripDropDownButton.
DropDownItems
.Add("b");
118
toolStripDropDownButton.
DropDownItems
.Add("c");
119
contextMenuStrip.Items.AddRange(toolStripDropDownButton.
DropDownItems
);
System\Windows\Forms\ToolStripItemTests.cs (1)
7081
toolStripDropDownItem1.
DropDownItems
.Add(toolStripDropDownItem2);
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
250
item.
DropDownItems
.Count.Should().Be(2);
251
item.
DropDownItems
[0].Text.Should().Be("SubItem1");
252
item.
DropDownItems
[1].Text.Should().Be("SubItem2");
System\Windows\Forms\ToolStripSplitButtonTests.cs (1)
164
toolStripSplitButton.
DropDownItems
.Cast<ToolStripItem>().Should().ContainInOrder(new[] { item1, item2 });
System\Windows\Forms\ToolStripTests.cs (5)
7345
toolStripMenuItem.
DropDownItems
.Add(listToolStripMenuItem);
7349
listToolStripMenuItem.
DropDownItems
.Add("MenuItem" + i);
7356
while (listToolStripMenuItem.
DropDownItems
.Count > 0)
7357
listToolStripMenuItem.
DropDownItems
[listToolStripMenuItem.
DropDownItems
.Count - 1].Dispose();
System.Windows.Forms.UI.IntegrationTests (3)
MenuStripTests.cs (1)
19
toolStripMenuItem1.
DropDownItems
.AddRange(toolStripMenuItem2, toolStripMenuItem3);
ToolStripTests.cs (2)
71
menu1.
DropDownItems
.Add(menu1Item1);
75
hiddenMenu.
DropDownItems
.Add(hiddenMenuItem1);
WinFormsControlsTest (13)
MenuStripAndCheckedListBox.Designer.cs (6)
83
this.fileToolStripMenuItem.
DropDownItems
.AddRange(new System.Windows.Forms.ToolStripItem[] {
116
this.memoryCardFileToolStripMenuItem.
DropDownItems
.AddRange(new System.Windows.Forms.ToolStripItem[] {
128
this.navigationToolStripMenuItem.
DropDownItems
.AddRange(new System.Windows.Forms.ToolStripItem[] {
137
this.newToolStripMenuItem1.
DropDownItems
.AddRange(new System.Windows.Forms.ToolStripItem[] {
145
this.settingsEditorToolStripMenuItem.
DropDownItems
.AddRange(new System.Windows.Forms.ToolStripItem[] {
209
this.checkStateSamplesToolStripMenuItem.
DropDownItems
.AddRange(new System.Windows.Forms.ToolStripItem[] {
ToolStripTests.Designer.cs (7)
148
this.toolStrip4_MenuItem1.
DropDownItems
.AddRange(new ToolStripItem[] { toolStrip4_SubMenuItem });
230
this.toolStrip3_MenuItem2.
DropDownItems
.AddRange(new ToolStripItem[] { uncheckedCheckOnClickToolStripMenuItem, checkCheckOnClickToolStripMenuItem, checkedCheckOnClickFToolStripMenuItem, indeterminateToolStripMenuItem, indeterminateCheckOnClickFToolStripMenuItem });
251
this.checkCheckOnClickToolStripMenuItem.
DropDownItems
.AddRange(new ToolStripItem[] { thirdLevelItem, thirdLevelButton, toolStripComboBox2, toolStripTextBox2, toolStrip2_SplitButton2, toolStrip2_DropDownButton2 });
285
this.toolStrip2_SplitButton2.
DropDownItems
.AddRange(new System.Windows.Forms.ToolStripItem[] {
303
this.toolStrip2_DropDownButton2.
DropDownItems
.AddRange(new System.Windows.Forms.ToolStripItem[] {
345
this.toolStrip2_SplitButton1.
DropDownItems
.AddRange(new System.Windows.Forms.ToolStripItem[] {
368
this.toolStrip2_DropDownButton1.
DropDownItems
.AddRange(new System.Windows.Forms.ToolStripItem[] {