18 writes to DropDown
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
67DropDown = CreateDefaultDropDown();
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
262((ToolStripMenuItem)itemToAdd).DropDown = FromHMenu(info.hSubMenu, targetWindow);
System\Windows\Forms\MDI\MDIControlStrip.cs (1)
138_system.DropDown = ToolStripDropDownMenu.FromHMenu(PInvoke.GetSystemMenu(GetSafeHandle(_target), bRevert: false), _target);
System.Windows.Forms.Design (9)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
153DropDown = rowMenu, 159DropDown = colMenu,
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (1)
41DropDown = ToolStripDesignerUtils.GetNewItemDropDown(ParentTool, _currentItem, new EventHandler(AddNewItemClick), false, _serviceProvider, true)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
665_menuItem.DropDown = _dropDown;
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (2)
195DropDown = ToolStripDesignerUtils.GetNewItemDropDown(ParentTool, _currentItem, new EventHandler(AddNewItemClick), true, _serviceProvider, true) 200DropDown = ToolStripDesignerUtils.GetNewItemDropDown(ParentTool, _currentItem, new EventHandler(AddNewItemClick), false, _serviceProvider, true)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
167MenuItem.DropDown = value; 2019MenuItem.DropDown = null;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1432_addItemButton.DropDown = _contextMenu;
System.Windows.Forms.Tests (4)
System\Windows\Forms\ToolStripDropDownTests.cs (2)
4237control.OverflowButton.DropDown = new ToolStripDropDown(); 4446control.OverflowButton.DropDown = new ToolStripDropDown();
System\Windows\Forms\ToolStripTests.cs (2)
5418control.OverflowButton.DropDown = new ToolStripDropDown(); 5605control.OverflowButton.DropDown = new ToolStripDropDown();
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
1028DropDown = _contextMenuStrip,
WinFormsControlsTest (1)
DragDrop.cs (1)
448DropDown = _catContextMenuStrip,
314 references to DropDown
System.Windows.Forms (82)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (10)
1640OverflowButton.DropDown.ShowItemToolTips = value; 1973CommonProperties.xClearPreferredSizeCache(OverflowButton.DropDown); 1974OverflowButton.DropDown.LayoutRequired = true; 1978LayoutTransaction.DoLayout(OverflowButton.DropDown, e.Item, PropertyNames.Items); 1979OverflowButton.DropDown.Invalidate(); 1990OverflowButton.DropDown.LayoutRequired = true; 1998|| !OverflowButton.DropDown.Visible 1999|| !OverflowButton.DropDown.IsHandleCreated; 2010return (_toolStripOverflowButton is null || !_toolStripOverflowButton.HasDropDown) ? null : _toolStripOverflowButton.DropDown as ToolStripOverflow; 2468OverflowButton.DropDown.HandleItemClick(dismissingItem);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
650return _ownerItem.Owner.OverflowButton.DropDown; 1134|| (dismissingItem is ToolStripSplitButton && !dismissingItem.DropDown.Visible) // clicking on the split button button dismisses
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (3)
134if (DropDown.Visible) 136ToolStripManager.ModalMenuFilter.CloseActiveDropDown(DropDown, ToolStripDropDownCloseReason.AppClicked); 160ToolStripManager.ModalMenuFilter.CloseActiveDropDown(DropDown, ToolStripDropDownCloseReason.AppClicked);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (24)
186if (HasDropDownItems && DropDown.Visible) 188DropDown.Location = DropDownLocation; 245=> DropDown.Items; 275if (DropDown.AutoClose || !IsInDesignMode || (IsInDesignMode && !IsOnDropDown)) 277return DropDown.OwnerItem == this && DropDown.Visible; 379Rectangle dropDownBounds = new(Point.Empty, DropDown.GetSuggestedSize()); 416DropDown.Visible = false; 445if (DropDown.Visible) 447LayoutTransaction.DoLayout(DropDown, this, PropertyNames.RightToLeft); 451CommonProperties.xClearPreferredSizeCache(DropDown); 452DropDown.LayoutRequired = true; 460if (HasDropDown && DropDown.IsAutoGenerated) 462DropDown.DoLayoutIfHandleCreated(new ToolStripItemEventArgs(this)); 491if (DropDown.OwnerItem != this) 520if (DropDown.OwnerItem != this) 527if (!DropDown.IsAutoGenerated) 529DropDown.OwnerItem = null; 548if (DropDown.OwnerItem == this) 558return DropDown.ProcessCmdKeyInternal(ref m, keyData); 580DropDown.SelectNextToolStripItem(start: null, forward: true); 598DropDown.SelectNextToolStripItem(start: null, forward: true); 713if (DropDown == ParentInternal) 781foreach (ToolStripItem childItem in item.DropDown.Items)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItemAccessibleObject.cs (11)
76if (_owner.DropDown.Visible) 78_owner.DropDown.Close(); 86return _owner.DropDown.Visible ? ExpandCollapseState.ExpandCollapseState_Expanded : ExpandCollapseState.ExpandCollapseState_Collapsed; 97return _owner.DropDown.AccessibilityObject.GetChild(index); 115if (_owner.DropDown.LayoutRequired) 117LayoutTransaction.DoLayout(_owner.DropDown, _owner.DropDown, PropertyNames.Items); 120return _owner.DropDown.AccessibilityObject.GetChildCount(); 166if (_owner.DropDown.AccessibilityObject is ToolStrip.ToolStripAccessibleObject toolStripAccessibleObject) 211return _owner.DropDown.Visible 212? _owner.DropDown.AccessibilityObject
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3426parent ??= (IsOnOverflow && Owner is not null) ? Owner.OverflowButton.DropDown : Owner;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
1167tsddownSrc.DropDown.SuspendLayout(); 1184tsddownSrc.DropDown.ResumeLayout();
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (4)
758DropDown.SelectNextToolStripItem(start: null, forward: true); 867showDropDown = !DropDown.Visible; 891ToolStripManager.ModalMenuFilter.CloseActiveDropDown(DropDown, ToolStripDropDownCloseReason.AppClicked); 1057DropDown.SelectNextToolStripItem(start: null, forward: true);
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.cs (1)
37DropDown.Dispose();
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.ToolStripOverflowButtonAccessibleObject.cs (2)
28=> _owningToolStripOverflowButton.DropDown.Visible 29? _owningToolStripOverflowButton.DropDown.AccessibilityObject
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (5)
170protected internal override bool DismissWhenClicked => !DropDown.Visible; 181public bool DropDownButtonPressed => DropDown.Visible; 425if (!DropDown.Visible) 452if (DropDown.Visible) 459ToolStripManager.ModalMenuFilter.CloseActiveDropDown(DropDown, ToolStripDropDownCloseReason.AppClicked);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObject.cs (7)
64if (_owningToolStripSplitButton is not null && _owningToolStripSplitButton.DropDown is not null && _owningToolStripSplitButton.DropDown.Visible) 66_owningToolStripSplitButton.DropDown.Close(); 74return _owningToolStripSplitButton.DropDown.Visible ? ExpandCollapseState.ExpandCollapseState_Expanded : ExpandCollapseState.ExpandCollapseState_Collapsed; 81NavigateDirection.NavigateDirection_FirstChild => DropDownItemsCount > 0 ? _owningToolStripSplitButton.DropDown.Items[0].AccessibilityObject : null, 82NavigateDirection.NavigateDirection_LastChild => DropDownItemsCount > 0 ? _owningToolStripSplitButton.DropDown.Items[_owningToolStripSplitButton.DropDown.Items.Count - 1].AccessibilityObject : null,
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (2)
347item.ParentInternal = (item.Placement == ToolStripItemPlacement.Overflow) ? toolStrip.OverflowButton.DropDown : null; 480item.ParentInternal = (item.Placement == ToolStripItemPlacement.Overflow) ? toolStrip.OverflowButton.DropDown : null;
System\Windows\Forms\MDI\MDIControlStrip.cs (3)
126_system.DropDown.Items.Clear(); 127_system.DropDown.Dispose(); 142_system.DropDown.Dispose();
System\Windows\Forms\MDI\MdiControlStrip.SystemMenuItem.cs (2)
21DropDown.SelectNextToolStripItem(start: null, forward: true); 30if (HasDropDownItems && DropDown.Visible)
System\Windows\Forms\MDI\MdiWindowListStrip.cs (2)
71MergeItem.DropDown.SuspendLayout(); 154MergeItem.DropDown.ResumeLayout(false);
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
952if (_zoomToolStripSplitButton.DropDown is ToolStripDropDownMenu menu)
System.Windows.Forms.Design (138)
System\Windows\Forms\Design\BaseContextMenuStrip.cs (3)
122_selectionMenuItem.DropDown.Renderer = (ToolStripProfessionalRenderer)uis.Styles["VsRenderer"]!; 125_selectionMenuItem.DropDown.Font = (Font)uis.Styles["DialogFont"]!; 129_selectionMenuItem.DropDown.ForeColor = color;
System\Windows\Forms\Design\StandardMenuStripVerb.cs (2)
190rootItem.DropDown.SuspendLayout(); 208rootItem.DropDown.ResumeLayout(false);
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (1)
298Rectangle controlBounds = BehaviorService?.ControlRectInAdornerWindow(dropDownItem.DropDown) ?? Rectangle.Empty;
System\Windows\Forms\Design\ToolStripDesigner.cs (13)
756if (ToolStrip.CanOverflow && !ToolStrip.OverflowButton.DropDown.Visible) 767if (ToolStrip.OverflowButton.DropDown.Visible) 1019if (ToolStrip.CanOverflow && !ToolStrip.OverflowButton.DropDown.Visible) 1121_boundsToInvalidate = dropDownItem.DropDown.Bounds; 1199if (ToolStrip.OverflowButton.DropDown.Visible) 1435ToolStrip.OverflowButton.DropDown.TopLevel = false; 1998_toolStripAdornerWindowService.Invalidate(ddi.DropDown.Bounds); 2035ToolStripItem nextItem = ddi.DropDown.GetNextItem(null, ArrowDirection.Down); 2072if (ddi.DropDown.TopLevel) 2074ddi.DropDown.TopLevel = false; 2080ddi.DropDown.Parent = _toolStripAdornerWindowService.ToolStripAdornerWindowControl; 2315if (ToolStrip.OverflowButton.DropDown.Visible) 2348if (!DontCloseOverflow && ToolStrip.OverflowButton.DropDown.Visible)
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
98parent = ((ToolStripDropDownItem)stripItem).DropDown;
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (4)
306_menuItem.DropDown.AutoClose = true; 441topmost = _menuItem.DropDown; 465topmost = _menuItem.DropDown; 666_menuItem.DropDown.OwnerItem = _menuItem;
System\Windows\Forms\Design\ToolStripDropDownItemDesigner.cs (1)
28if (Component is ToolStripDropDownItem item && item.DropDown.IsAutoGenerated)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (8)
81item.DropDown.Renderer = (ToolStripProfessionalRenderer)uis.Styles["VsRenderer"]; 82item.DropDown.Font = (Font)uis.Styles["DialogFont"]; 169_alignmentToolStripMenuItem.DropDown.Renderer = renderer; 170_displayStyleToolStripMenuItem.DropDown.Renderer = renderer; 173_alignmentToolStripMenuItem.DropDown.Font = font; 174_displayStyleToolStripMenuItem.DropDown.Font = font; 180_alignmentToolStripMenuItem.DropDown.ForeColor = panelTextColor; 181_displayStyleToolStripMenuItem.DropDown.ForeColor = panelTextColor;
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
176if (strip.OverflowButton.DropDown.Visible)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (8)
532if (Host.GetDesigner(parentItem.DropDown) is ToolStripDropDownDesigner dropDownDesigner) 536else if (!parentItem.DropDown.Visible && Host.GetDesigner(parentItem) is ToolStripMenuItemDesigner designer) 652if (selSvc.PrimarySelection is ToolStripDropDownItem dropDownItem && dropDownItem.DropDown.Visible) 1253targetSelection = GetNextItem(dropDownItem.DropDown, null, ArrowDirection.Right); 1260if (!dropDownItem.DropDown.Visible 1371parentToMoveOn = dropDownItem.DropDown; 1377? dropDownItem.Owner.OverflowButton.DropDown 2073object newSelection = GetNextItem(overFlowButton.DropDown, null, ArrowDirection.Down);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (93)
87if (MenuItem.DropDown.IsAutoGenerated) 130if (MenuItem.DropDown is not null) 135if (MenuItem.DropDown.IsAutoGenerated && MenuItem.DropDownItems.Count > 0) 191MenuItem.DropDown.OwnerItem = MenuItem; 192MenuItem.DropDown.Disposed += OnDropDownDisposed; 305&& MenuItem.DropDown == selectedItem) 436MenuItem.DropDown.SuspendLayout(); 445MenuItem.DropDown.Items.Remove(_commitedEditorNode); 584MenuItem.DropDown.ResumeLayout(true); 585MenuItem.DropDown.PerformLayout(); 633MenuItem.DropDown.SuspendLayout(); 638MenuItem.DropDown.Items.Remove(_commitedEditorNode); 680MenuItem.DropDown.ResumeLayout(); 714MenuItem.DropDown.PerformLayout(); 726AddNewTemplateNode(MenuItem.DropDown); 728if (MenuItem.DropDown.Site is null) 730MenuItem.DropDown.Text = $"{MenuItem.Name}.DropDown"; 735MenuItem.DropDown.Items.Add(_typeHereNode); 740MenuItem.DropDown.PerformLayout(); 998MenuItem.DropDown.Hide(); 1112ddi.DropDown.TopLevel = false; 1113ddi.DropDown.Parent = _toolStripAdornerWindowService.ToolStripAdornerWindowControl; 1128Control rootControl = ddi.DropDown; 1160if (ddi.DropDown.Site is not null || ddi.DropDownItems.Count == 1) 1167_toolStripAdornerWindowService?.Invalidate(ddi.DropDown.Bounds); 1272MenuItem.DropDown.SuspendLayout(); 1304MenuItem.DropDown.ResumeLayout(); 1343MenuItem.DropDown.SuspendLayout(); 1368MenuItem.DropDown.ResumeLayout(); 1376dropDownItem.DropDown.Location = new Point(dropDownItem.DropDown.Location.X + _commitedEditorNode.Bounds.Width - dropDownItem.Bounds.Width, dropDownItem.DropDown.Location.Y); 1433if (item.DropDown.Visible) 1488MenuItem.DropDown.Closing += OnDropDownClosing; 1492MenuItem.DropDown.Resize += DropDownResize; 1493MenuItem.DropDown.ItemAdded += OnItemAdded; 1494MenuItem.DropDown.Paint += DropDownPaint; 1495MenuItem.DropDown.Click += DropDownClick; 1496MenuItem.DropDown.LocationChanged += DropDownLocationChanged; 1576if (MenuItem.DropDown.OwnerItem is ToolStripDropDownItem currentOwner && currentOwner != MenuItem) 1587if (MenuItem.DropDown.Site is not null) 1589if (_designerHost.GetDesigner(MenuItem.DropDown) is ToolStripDropDownDesigner designer) 1596MenuItem.DropDown.TopLevel = false; 1599MenuItem.DropDown.AllowDrop = true; 1601MenuItem.DropDown.AutoClose = false; 1654Rectangle itemDropDownBounds = MenuItem.DropDown.Bounds; 1679if (IsOnContextMenu && MenuItem.DropDown.Site is not null) 1683MemberDescriptor member = TypeDescriptor.GetProperties(MenuItem.DropDown)["Items"]; 1684changeService.OnComponentChanging(MenuItem.DropDown, member); 1698if (IsOnContextMenu && MenuItem.DropDown.Site is not null) 1700MenuItem.DropDown.Items.Insert(_indexToInsertNewItem, newItem); 1716if (IsOnContextMenu && MenuItem.DropDown.Site is not null) 1718MenuItem.DropDown.Items.Insert(index + 1, newItem); 1727if (IsOnContextMenu && MenuItem.DropDown.Site is not null) 1729MenuItem.DropDown.Items.Insert(index, newItem); 1744if (IsOnContextMenu && MenuItem.DropDown.Site is not null) 1746MenuItem.DropDown.Items.Insert(count - 1, newItem); 1756if (IsOnContextMenu && MenuItem.DropDown.Site is not null) 1758MenuItem.DropDown.Items.Add(newItem); 1782if (IsOnContextMenu && MenuItem.DropDown.Site is not null) 1786MemberDescriptor member = TypeDescriptor.GetProperties(MenuItem.DropDown)["Items"]; 1787changeService.OnComponentChanged(MenuItem.DropDown, member); 1921regionToInvalidate.Exclude(MenuItem.DropDown.Bounds); 1970_boundsToInvalidateOnRemove = ownerItem.DropDown.Bounds; 1974_boundsToInvalidateOnRemove = Rectangle.Union(_boundsToInvalidateOnRemove, dropDownItem.DropDown.Bounds); 2013if (MenuItem.DropDown is not null) 2015MenuItem.DropDown.Disposed -= OnDropDownDisposed; 2033int currentIndexOfEditor = MenuItem.DropDown.Items.IndexOf(_typeHereNode); 2034if (currentIndexOfEditor >= 0 && currentIndexOfEditor < MenuItem.DropDown.Items.Count - 1) 2037MenuItem.DropDown.ItemAdded -= OnItemAdded; 2038MenuItem.DropDown.SuspendLayout(); 2039MenuItem.DropDown.Items.Remove(_typeHereNode); 2040MenuItem.DropDown.Items.Add(_typeHereNode); 2041MenuItem.DropDown.ResumeLayout(); 2042MenuItem.DropDown.ItemAdded += OnItemAdded; 2060if (_dropDownSet && MenuItem.DropDown.IsAutoGenerated) 2080MenuItem.DropDown.PerformLayout(); 2104if (!IsOnContextMenu && MenuItem.DropDown.Visible) 2108if (!MenuItem.DropDown.IsAutoGenerated) 2224if (MenuItem.DropDown.Visible) 2229if (selectedObj is ToolStripDropDown selectedDropDown && MenuItem.DropDown == selectedDropDown) 2241if (parent == MenuItem.DropDown) 2254if (MenuItem.DropDown.OwnerItem == MenuItem) 2316Rectangle bounds = ownerItem.DropDown.Bounds; 2353MenuItem.DropDown.Items.Remove(_commitedEditorNode); 2418if (item.DropDown.Visible) 2562if (currentSelection is not null && !currentSelection.DropDown.Visible) 2582MenuItem.DropDown.Closing -= OnDropDownClosing; 2586MenuItem.DropDown.Resize -= DropDownResize; 2587MenuItem.DropDown.ItemAdded -= OnItemAdded; 2588MenuItem.DropDown.Paint -= DropDownPaint; 2589MenuItem.DropDown.LocationChanged -= DropDownLocationChanged; 2590MenuItem.DropDown.Click -= DropDownClick;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (3)
400_addItemButton.DropDown.Visible = false; 716_addItemButton.DropDown.Dispose(); 1009_addItemButton.DropDown.Focus();
System.Windows.Forms.Tests (94)
System\Windows\Forms\AccessibleObjects\ToolStripDropDownButton.ToolStripDropDownButtonAccessibleObjectTests.cs (2)
89dropDownItem.DropDown.Show(); 91AccessibleObject expected = dropDownItem.DropDown.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ToolStripDropDownItemAccessibleObjectTests.cs (11)
63control.DropDown.Items.Add(new SubToolStripDropDownItem()); 64control.DropDown.Visible = visible; 82control.DropDown.Items.Add(new SubToolStripDropDownItem()); 95control.DropDown.Items.Add(new SubToolStripDropDownItem() { Available = true }); 98control.DropDown.Visible = true; 120control.DropDown.Items.AddRange(new[] { item1, item2 }); 138control.DropDown.Items.AddRange(new[] { item1, item2 }); 157control.DropDown.Items.AddRange(new[] { item1, item2 }); 212_ = toolStripDropDownItem.DropDown.AccessibilityObject; 214Assert.True(toolStripDropDownItem.DropDown.IsAccessibilityObjectCreated); 218Assert.False(toolStripDropDownItem.DropDown.IsAccessibilityObjectCreated);
System\Windows\Forms\AccessibleObjects\ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObjectTests.cs (20)
36AccessibleObject accessibleObject = item.DropDown.AccessibilityObject; 64AccessibleObject accessibleObject = item.DropDown.AccessibilityObject; 124ownerItem.DropDown.Show(); 125AccessibleObject accessibleObject = ownerItem.DropDown.AccessibilityObject; 138parentItem1.DropDown.Show(); 139AccessibleObject accessibleObject1 = parentItem1.DropDown.AccessibilityObject; 152parentItem2.DropDown.Show(); 153AccessibleObject accessibleObject2 = parentItem2.DropDown.AccessibilityObject; 212parentItem1.ParentInternal = ownerItem.DropDown; 213parentItem2.ParentInternal = ownerItem.DropDown; 215ownerItem.DropDown.Show(); 216AccessibleObject accessibleObject = ownerItem.DropDown.AccessibilityObject; 229parentItem1.DropDown.Show(); 230AccessibleObject accessibleObject1 = parentItem1.DropDown.AccessibilityObject; 243parentItem2.DropDown.Show(); 244AccessibleObject accessibleObject2 = parentItem2.DropDown.AccessibilityObject; 267ToolStripDropDown dropDown = menuItem.DropDown; 279ToolStripDropDown dropDown = dropDownButton.DropDown; 301ToolStripDropDown dropDown = menuItem.DropDown; 313ToolStripDropDown dropDown = dropDownButton.DropDown;
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (8)
127toolStrip.OverflowButton.DropDown.CreateControl(ignoreVisible: true); 129AccessibleObject accessibleObject = toolStrip.OverflowButton.DropDown.AccessibilityObject; 144toolStrip.OverflowButton.DropDown.CreateControl(ignoreVisible: true); 146AccessibleObject accessibleObject = toolStrip.OverflowButton.DropDown.AccessibilityObject; 157toolStrip.OverflowButton.DropDown.CreateControl(ignoreVisible: true); 159AccessibleObject accessibleObject = toolStrip.OverflowButton.DropDown.AccessibilityObject; 174toolStrip.OverflowButton.DropDown.CreateControl(ignoreVisible: true); 176AccessibleObject accessibleObject = toolStrip.OverflowButton.DropDown.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ToolStripOverflowButton.ToolStripOverflowButtonAccessibleObjectTests.cs (2)
96toolStrip.OverflowButton.DropDown.Show(); 98AccessibleObject expected = toolStrip.OverflowButton.DropDown.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObjectTests.cs (2)
88toolStripSplitButton.DropDown.Show(); 130toolStripSplitButton.DropDown.Show();
System\Windows\Forms\MenuStripTests.cs (1)
346Assert.Equal(!value, control.OverflowButton.DropDown.ShowItemToolTips);
System\Windows\Forms\StatusStripTests.cs (1)
854Assert.Equal(!value, control.OverflowButton.DropDown.ShowItemToolTips);
System\Windows\Forms\ToolStripDropDownItemTests.cs (31)
335Assert.NotNull(item.DropDown); 336Assert.Same(item.DropDown, item.DropDown); 337Assert.True(item.DropDown.IsAutoGenerated); 338Assert.True(item.DropDown.ShowItemToolTips); 339Assert.Same(item, item.DropDown.OwnerItem); 394Assert.NotNull(item.DropDown); 395Assert.Same(item.DropDown, item.DropDown); 396Assert.True(item.DropDown.IsAutoGenerated); 397Assert.True(item.DropDown.ShowItemToolTips); 398Assert.Same(item, item.DropDown.OwnerItem); 414Assert.NotNull(item.DropDown); 415Assert.Same(item.DropDown, item.DropDown); 416Assert.True(item.DropDown.IsAutoGenerated); 417Assert.True(item.DropDown.ShowItemToolTips); 418Assert.Same(item, item.DropDown.OwnerItem); 434Assert.NotNull(item.DropDown); 435Assert.Same(item.DropDown, item.DropDown); 436Assert.True(item.DropDown.IsAutoGenerated); 437Assert.Equal(showItemToolTips, item.DropDown.ShowItemToolTips); 438Assert.Same(item, item.DropDown.OwnerItem); 450Assert.NotNull(item.DropDown); 451Assert.Same(item.DropDown, item.DropDown); 452Assert.Same(result, item.DropDown); 455Assert.Null(item.DropDown.OwnerItem); 466Assert.Throws<NullReferenceException>(() => item.DropDown); 467Assert.Throws<NullReferenceException>(() => item.DropDown);
System\Windows\Forms\ToolStripDropDownTests.cs (6)
4884ToolStripItemCollection items = toolStrip.DropDown.DisplayedItems; 4897ToolStripItem actual = toolStrip.DropDown.GetNextItem(start: null, direction: ArrowDirection.Up); 4901actual = toolStrip.DropDown.GetNextItem(start: items[0], direction: ArrowDirection.Up); 4905actual = toolStrip.DropDown.GetNextItem(start: null, direction: ArrowDirection.Down); 4909actual = toolStrip.DropDown.GetNextItem(start: items[0], direction: ArrowDirection.Down); 4913actual = toolStrip.DropDown.GetNextItem(start: items[4], direction: ArrowDirection.Down);
System\Windows\Forms\ToolStripItemCollectionTests.cs (2)
86var collection = toolStrip.DropDown.DisplayedItems; 100var collection = toolStrip.DropDown.DisplayedItems;
System\Windows\Forms\ToolStripTests.cs (8)
3599Assert.Equal(!value, control.OverflowButton.DropDown.ShowItemToolTips); 3623Assert.Equal(!value, control.OverflowButton.DropDown.ShowItemToolTips); 3636Assert.Equal(value, control.OverflowButton.DropDown.ShowItemToolTips); 3642Assert.Equal(value, control.OverflowButton.DropDown.ShowItemToolTips); 3648Assert.Equal(value, control.OverflowButton.DropDown.ShowItemToolTips); 7351listToolStripMenuItem.DropDown.PerformLayout(); // needed to populate DisplayedItems collection 7366Assert.Equal(4, listToolStripMenuItem.DropDown.DisplayedItems.Count); 7368Assert.Empty(listToolStripMenuItem.DropDown.DisplayedItems);