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