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