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)
4239
control.OverflowButton.
DropDown
= new ToolStripDropDown();
4448
control.OverflowButton.
DropDown
= new ToolStripDropDown();
System\Windows\Forms\ToolStripTests.cs (2)
5420
control.OverflowButton.
DropDown
= new ToolStripDropDown();
5607
control.OverflowButton.
DropDown
= new ToolStripDropDown();
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
1028
DropDown
= _contextMenuStrip,
WinFormsControlsTest (1)
DragDrop.cs (1)
448
DropDown
= _catContextMenuStrip,
312 references to DropDown
System.Windows.Forms (82)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (10)
1639
OverflowButton.
DropDown
.ShowItemToolTips = value;
1972
CommonProperties.xClearPreferredSizeCache(OverflowButton.
DropDown
);
1973
OverflowButton.
DropDown
.LayoutRequired = true;
1977
LayoutTransaction.DoLayout(OverflowButton.
DropDown
, e.Item, PropertyNames.Items);
1978
OverflowButton.
DropDown
.Invalidate();
1989
OverflowButton.
DropDown
.LayoutRequired = true;
1997
|| !OverflowButton.
DropDown
.Visible
1998
|| !OverflowButton.
DropDown
.IsHandleCreated;
2009
return (_toolStripOverflowButton is null || !_toolStripOverflowButton.HasDropDown) ? null : _toolStripOverflowButton.
DropDown
as ToolStripOverflow;
2467
OverflowButton.
DropDown
.HandleItemClick(dismissingItem);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
650
return _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)
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)
3430
parent ??= (IsOnOverflow && Owner is not null) ? Owner.OverflowButton.
DropDown
: Owner;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
1166
tsddownSrc.
DropDown
.SuspendLayout();
1183
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 (139)
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\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
974
currentToolStrip = instance is ToolStripDropDownItem toolStripDropDownItem ? toolStripDropDownItem.
DropDown
: instance as ToolStrip;
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)
1019
if (ToolStrip.CanOverflow && !ToolStrip.OverflowButton.
DropDown
.Visible)
1121
_boundsToInvalidate = dropDownItem.
DropDown
.Bounds;
1199
if (ToolStrip.OverflowButton.
DropDown
.Visible)
1435
ToolStrip.OverflowButton.
DropDown
.TopLevel = false;
1998
_toolStripAdornerWindowService.Invalidate(ddi.
DropDown
.Bounds);
2035
ToolStripItem nextItem = ddi.
DropDown
.GetNextItem(null, ArrowDirection.Down);
2072
if (ddi.
DropDown
.TopLevel)
2074
ddi.
DropDown
.TopLevel = false;
2080
ddi.
DropDown
.Parent = _toolStripAdornerWindowService.ToolStripAdornerWindowControl;
2315
if (ToolStrip.OverflowButton.
DropDown
.Visible)
2348
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 (91)
System\Windows\Forms\AccessibleObjects\ToolStripDropDownButton.ToolStripDropDownButtonAccessibleObjectTests.cs (2)
91
dropDownItem.
DropDown
.Show();
93
AccessibleObject expected = dropDownItem.
DropDown
.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ToolStripDropDownItemAccessibleObjectTests.cs (11)
65
control.
DropDown
.Items.Add(new SubToolStripDropDownItem());
66
control.
DropDown
.Visible = visible;
84
control.
DropDown
.Items.Add(new SubToolStripDropDownItem());
97
control.
DropDown
.Items.Add(new SubToolStripDropDownItem() { Available = true });
100
control.
DropDown
.Visible = true;
122
control.
DropDown
.Items.AddRange(new[] { item1, item2 });
140
control.
DropDown
.Items.AddRange(new[] { item1, item2 });
159
control.
DropDown
.Items.AddRange(new[] { item1, item2 });
214
_ = toolStripDropDownItem.
DropDown
.AccessibilityObject;
216
Assert.True(toolStripDropDownItem.
DropDown
.IsAccessibilityObjectCreated);
220
Assert.False(toolStripDropDownItem.
DropDown
.IsAccessibilityObjectCreated);
System\Windows\Forms\AccessibleObjects\ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObjectTests.cs (20)
38
AccessibleObject accessibleObject = item.
DropDown
.AccessibilityObject;
66
AccessibleObject accessibleObject = item.
DropDown
.AccessibilityObject;
126
ownerItem.
DropDown
.Show();
127
AccessibleObject accessibleObject = ownerItem.
DropDown
.AccessibilityObject;
140
parentItem1.
DropDown
.Show();
141
AccessibleObject accessibleObject1 = parentItem1.
DropDown
.AccessibilityObject;
154
parentItem2.
DropDown
.Show();
155
AccessibleObject accessibleObject2 = parentItem2.
DropDown
.AccessibilityObject;
214
parentItem1.ParentInternal = ownerItem.
DropDown
;
215
parentItem2.ParentInternal = ownerItem.
DropDown
;
217
ownerItem.
DropDown
.Show();
218
AccessibleObject accessibleObject = ownerItem.
DropDown
.AccessibilityObject;
231
parentItem1.
DropDown
.Show();
232
AccessibleObject accessibleObject1 = parentItem1.
DropDown
.AccessibilityObject;
245
parentItem2.
DropDown
.Show();
246
AccessibleObject accessibleObject2 = parentItem2.
DropDown
.AccessibilityObject;
269
ToolStripDropDown dropDown = menuItem.
DropDown
;
281
ToolStripDropDown dropDown = dropDownButton.
DropDown
;
303
ToolStripDropDown dropDown = menuItem.
DropDown
;
315
ToolStripDropDown dropDown = dropDownButton.
DropDown
;
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (8)
129
toolStrip.OverflowButton.
DropDown
.CreateControl(ignoreVisible: true);
131
AccessibleObject accessibleObject = toolStrip.OverflowButton.
DropDown
.AccessibilityObject;
146
toolStrip.OverflowButton.
DropDown
.CreateControl(ignoreVisible: true);
148
AccessibleObject accessibleObject = toolStrip.OverflowButton.
DropDown
.AccessibilityObject;
159
toolStrip.OverflowButton.
DropDown
.CreateControl(ignoreVisible: true);
161
AccessibleObject accessibleObject = toolStrip.OverflowButton.
DropDown
.AccessibilityObject;
176
toolStrip.OverflowButton.
DropDown
.CreateControl(ignoreVisible: true);
178
AccessibleObject accessibleObject = toolStrip.OverflowButton.
DropDown
.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ToolStripOverflowButton.ToolStripOverflowButtonAccessibleObjectTests.cs (2)
98
toolStrip.OverflowButton.
DropDown
.Show();
100
AccessibleObject expected = toolStrip.OverflowButton.
DropDown
.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObjectTests.cs (2)
90
toolStripSplitButton.
DropDown
.Show();
132
toolStripSplitButton.
DropDown
.Show();
System\Windows\Forms\MenuStripTests.cs (1)
348
Assert.Equal(!value, control.OverflowButton.
DropDown
.ShowItemToolTips);
System\Windows\Forms\StatusStripTests.cs (1)
856
Assert.Equal(!value, control.OverflowButton.
DropDown
.ShowItemToolTips);
System\Windows\Forms\ToolStripDropDownItemTests.cs (31)
337
Assert.NotNull(item.
DropDown
);
338
Assert.Same(item.
DropDown
, item.
DropDown
);
339
Assert.True(item.
DropDown
.IsAutoGenerated);
340
Assert.True(item.
DropDown
.ShowItemToolTips);
341
Assert.Same(item, item.
DropDown
.OwnerItem);
396
Assert.NotNull(item.
DropDown
);
397
Assert.Same(item.
DropDown
, item.
DropDown
);
398
Assert.True(item.
DropDown
.IsAutoGenerated);
399
Assert.True(item.
DropDown
.ShowItemToolTips);
400
Assert.Same(item, item.
DropDown
.OwnerItem);
416
Assert.NotNull(item.
DropDown
);
417
Assert.Same(item.
DropDown
, item.
DropDown
);
418
Assert.True(item.
DropDown
.IsAutoGenerated);
419
Assert.True(item.
DropDown
.ShowItemToolTips);
420
Assert.Same(item, item.
DropDown
.OwnerItem);
436
Assert.NotNull(item.
DropDown
);
437
Assert.Same(item.
DropDown
, item.
DropDown
);
438
Assert.True(item.
DropDown
.IsAutoGenerated);
439
Assert.Equal(showItemToolTips, item.
DropDown
.ShowItemToolTips);
440
Assert.Same(item, item.
DropDown
.OwnerItem);
452
Assert.NotNull(item.
DropDown
);
453
Assert.Same(item.
DropDown
, item.
DropDown
);
454
Assert.Same(result, item.
DropDown
);
457
Assert.Null(item.
DropDown
.OwnerItem);
468
Assert.Throws<NullReferenceException>(() => item.
DropDown
);
469
Assert.Throws<NullReferenceException>(() => item.
DropDown
);
System\Windows\Forms\ToolStripDropDownTests.cs (6)
4886
ToolStripItemCollection items = toolStrip.
DropDown
.DisplayedItems;
4899
ToolStripItem actual = toolStrip.
DropDown
.GetNextItem(start: null, direction: ArrowDirection.Up);
4903
actual = toolStrip.
DropDown
.GetNextItem(start: items[0], direction: ArrowDirection.Up);
4907
actual = toolStrip.
DropDown
.GetNextItem(start: null, direction: ArrowDirection.Down);
4911
actual = toolStrip.
DropDown
.GetNextItem(start: items[0], direction: ArrowDirection.Down);
4915
actual = toolStrip.
DropDown
.GetNextItem(start: items[4], direction: ArrowDirection.Down);
System\Windows\Forms\ToolStripItemCollectionTests.cs (2)
84
var collection = toolStrip.
DropDown
.DisplayedItems;
98
var collection = toolStrip.
DropDown
.DisplayedItems;
System\Windows\Forms\ToolStripTests.cs (5)
3601
Assert.Equal(!value, control.OverflowButton.
DropDown
.ShowItemToolTips);
3625
Assert.Equal(!value, control.OverflowButton.
DropDown
.ShowItemToolTips);
3638
Assert.Equal(value, control.OverflowButton.
DropDown
.ShowItemToolTips);
3644
Assert.Equal(value, control.OverflowButton.
DropDown
.ShowItemToolTips);
3650
Assert.Equal(value, control.OverflowButton.
DropDown
.ShowItemToolTips);