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