92 references to DropDownItems
System.Windows.Forms (30)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
3940if (toolStripItem is ToolStripDropDownItem dropDownItem && dropDownItem.DropDownItems.Count > 0) 3942ToolStripItemCollection 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)
285FindInternal(key, searchAllChildren, item.DropDownItems, foundItems);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (6)
1144if (item is ToolStripDropDownItem tsddownDest && source is ToolStripDropDownItem tsddownSrc && tsddownSrc.DropDownItems.Count != 0) 1146int originalCount = tsddownSrc.DropDownItems.Count; 1159MergeRecursive(tsddownSrc.DropDownItems[itemToLookAt], tsddownDest.DropDownItems, history); 1161int numberOfItemsMerged = lastCount - tsddownSrc.DropDownItems.Count; 1163lastCount = tsddownSrc.DropDownItems.Count;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObject.cs (1)
98return _owningToolStripSplitButton.DropDownItems.Count;
System\Windows\Forms\Form.cs (4)
6329numWindowListItems = MdiWindowListStrip.MergedMenu.MdiWindowListItem.DropDownItems.Count; 6339Debug.Assert(numWindowListItems == MdiWindowListStrip.MergedMenu.MdiWindowListItem.DropDownItems.Count, "Calling RevertMerge modified the mdiwindowlistitem"); 6386int nSubItems = sourceMenuStrip.MdiWindowListItem.DropDownItems.Count; 6388!(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)
193rootItem.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)
519foreach (ToolStripItem item in parent.DropDownItems) 522if (item is ToolStripDropDownItem dropDownItem && dropDownItem.DropDownItems.Count > 1 /*including TN*/) 541foreach (ToolStripItem item in parent.DropDownItems) 544if (item is ToolStripDropDownItem dropDownItem && dropDownItem.DropDownItems.Count > 1 /*including TN*/) 1124foreach (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]; 559index = MenuItem.DropDownItems.IndexOf(_typeHereNode); 586? MenuItem.DropDownItems[index - 1] 587: MenuItem.DropDownItems[index + 1]; 593if (MenuItem.DropDownItems[index] is ToolStripDropDownItem currentItem) 614_selectionService.SetSelectedComponents(new object[] { MenuItem.DropDownItems[index] }, SelectionTypes.Replace); 627int index = MenuItem.DropDownItems.IndexOf(_commitedEditorNode); 628ToolStripItem editedItem = MenuItem.DropDownItems[index + 1]; 640MenuItem.DropDownItems.Remove(editedItem); 686if (MenuItem.DropDownItems.Count == 0) 718else if (_typeHereNode is not null && MenuItem.DropDownItems.IndexOf(_typeHereNode) == -1) 928int index = MenuItem.DropDownItems.IndexOf(_commitedEditorNode); 930if (index != -1 && MenuItem.DropDownItems.Count > index) 932if (MenuItem.DropDownItems[index] is ToolStripDropDownItem newItem) 1038foreach (ToolStripItem item in MenuItem.DropDownItems) 1130if (ddi.DropDown.Site is not null || ddi.DropDownItems.Count == 1) 1244int index = MenuItem.DropDownItems.IndexOf(_typeHereNode); 1326int index = MenuItem.DropDownItems.IndexOf(toolItem); 1328MenuItem.DropDownItems.Insert(index, _commitedEditorNode); 1660int count = MenuItem.DropDownItems.Count; 1671MenuItem.DropDownItems.Insert(_indexToInsertNewItem, newItem); 1679int index = MenuItem.DropDownItems.IndexOf(selectedItem); 1689MenuItem.DropDownItems.Insert(index + 1, newItem); 1700MenuItem.DropDownItems.Insert(index, newItem); 1717MenuItem.DropDownItems.Insert(count - 1, newItem); 1729MenuItem.DropDownItems.Add(newItem); 1852int itemIndex = ownerItem.DropDownItems.IndexOf(itemToBeDeleted); 1858ownerItem.DropDownItems.Remove(itemToBeDeleted); 1871if (ownerItem.DropDownItems.Count > 1) 1873itemIndex = Math.Min(ownerItem.DropDownItems.Count - 1, itemIndex); 1895IComponent targetSelection = (itemIndex == -1) ? ownerItem : ownerItem.DropDownItems[itemIndex]; 2025MenuItem.DropDownItems.Insert(0, item); 2275if (ownerItem.DropDownItems.Count > 0 && ownerItem.DropDownItems[0] is DesignerToolStripControlHost) 2277ownerItem.DropDownItems.RemoveAt(0); 2300int index = MenuItem.DropDownItems.IndexOf(_commitedEditorNode); 2302ToolStripDropDownItem editedItem = (ToolStripDropDownItem)MenuItem.DropDownItems[index + 1]; 2325foreach (ToolStripItem ddItem in item.DropDownItems) 2395count = MenuItem.DropDownItems.Count; 2402KeyboardHandlingService.SelectedDesignerControl = MenuItem.DropDownItems[count];
System\Windows\Forms\Design\ToolStripTemplateNode.cs (3)
1391if (_addItemButton.DropDownItems.Count > 0) 1393ItemTypeToolStripMenuItem firstItem = (ItemTypeToolStripMenuItem)_addItemButton.DropDownItems[0]; 1403Debug.Assert(_addItemButton.DropDownItems.Count > 0);