5 types derived from ToolStripDropDown
System.Windows.Forms (4)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
12
public partial class ToolStripDropDownMenu :
ToolStripDropDown
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObject.cs (1)
9
public partial class ToolStripDropDownMenu :
ToolStripDropDown
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflow.cs (1)
9
public partial class ToolStripOverflow :
ToolStripDropDown
, IArrangedElement
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.FeedbackDropDown.cs (1)
13
private class FeedbackDropDown :
ToolStripDropDown
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (1)
12
internal class DesignerActionToolStripDropDown :
ToolStripDropDown
1 instantiation of ToolStripDropDown
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
297
return new
ToolStripDropDown
(this, true);
180 references to ToolStripDropDown
System.Windows.Forms (75)
src\winforms\src\Common\src\Obsoletions.cs (1)
37
internal const string MenuMessage = $"`{nameof(Menu)}` is provided for binary compatibility with .NET Framework and is not intended to be used directly from your code. Use `{nameof(
ToolStripDropDown
)}` and `{nameof(ToolStripDropDownMenu)}` instead.";
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (7)
161
internal List<
ToolStripDropDown
> ActiveDropDowns { get; } = new(1);
1101
get { return (this is
ToolStripDropDown
); }
1487
var
dropDown = (
ToolStripDropDown
)this;
2068
ToolStripDropDown
? dropDown = this as
ToolStripDropDown
;
2128
if (this is
ToolStripDropDown
dropDown && dropDown.OwnerItem is not null && (dropDown.OwnerItem.IsInDesignMode || (dropDown.OwnerItem.Owner is not null && dropDown.OwnerItem.Owner.IsInDesignMode)))
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (13)
1056
ToolStripDropDown
topmost = GetFirstDropDown();
1062
ToolStripDropDown
topmost = GetFirstDropDown();
1931
ToolStripDropDown
toplevel = GetFirstDropDown();
1948
List<
ToolStripDropDown
> dropDowns = [..ActiveDropDowns];
2008
internal bool IsFirstDropDown => OwnerToolStrip as
ToolStripDropDown
is null;
2013
internal
ToolStripDropDown
GetFirstDropDown()
2015
ToolStripDropDown
topmost = this;
2017
ToolStripDropDown
? ownerDropDown = topmost.OwnerToolStrip as
ToolStripDropDown
;
2021
ownerDropDown = topmost.OwnerToolStrip as
ToolStripDropDown
;
2027
internal static
ToolStripDropDown
? GetFirstDropDown(ToolStrip start)
2035
ToolStripDropDown
startDropDown = (
ToolStripDropDown
)start;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.ToolStripDropDownAccessibleObject.cs (5)
13
public ToolStripDropDownAccessibleObject(
ToolStripDropDown
owner) : base(owner)
31
return this.TryGetOwnerAs(out
ToolStripDropDown
? owner)
39
if (this.TryGetOwnerAs(out
ToolStripDropDown
? owner))
48
&& this.TryGetOwnerAs(out
ToolStripDropDown
? owner)
54
this.TryGetOwnerAs(out
ToolStripDropDown
? owner);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (1)
112
protected override
ToolStripDropDown
CreateDefaultDropDown()
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (4)
19
private
ToolStripDropDown
? _dropDown;
61
public
ToolStripDropDown
DropDown
294
protected virtual
ToolStripDropDown
CreateDefaultDropDown()
623
ToolStripDropDown
? parent = GetCurrentParentDropDown();
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItemAccessibleObject.cs (2)
66
_owner.Owner is
ToolStripDropDown
toolStripDropDown
180
if (_owner.Owner is not
ToolStripDropDown
dropDown)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (1)
261
if (e.ToolStrip is
ToolStripDropDown
)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (7)
1434
ToolStripDropDown
? currentParent = null;
1437
currentParent = ParentInternal as
ToolStripDropDown
;
1442
currentParent = Owner as
ToolStripDropDown
;
2333
internal
ToolStripDropDown
? GetCurrentParentDropDown()
2337
return ParentInternal as
ToolStripDropDown
;
2340
return Owner as
ToolStripDropDown
;
3580
if (_parent is
ToolStripDropDown
dropDown && dropDown.OwnerItem is not null)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
321
ToolStripDropDown
dropDown = Owner.GetCurrentParentDropDown()!;
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (1)
226
if (_owner is
ToolStripDropDown
dropDown)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
796
ToolStripDropDown
dropDown = (
ToolStripDropDown
)toolStrip;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (11)
278
internal static void CloseActiveDropDown(
ToolStripDropDown
activeToolStripDropDown, ToolStripDropDownCloseReason reason)
325
if (activeToolStrip is
ToolStripDropDown
activeToolStripDropDown)
364
if (GetActiveToolStripInternal() is
ToolStripDropDown
activeDropDown && activeDropDown.AutoClose)
397
ToolStripDropDown
dropDown = (
ToolStripDropDown
)toolStrip;
433
&& (
ToolStripDropDown
.GetFirstDropDown(toolStrip)
434
!=
ToolStripDropDown
.GetFirstDropDown(currentActiveToolStrip)))
438
ToolStripDropDown
currentActiveToolStripDropDown = (
ToolStripDropDown
)currentActiveToolStrip;
538
else if (Control.FromChildHandle(activeWindowHandle.Handle) is not
ToolStripDropDown
568
if (control is null || control.TopLevelControlInternal is not
ToolStripDropDown
)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (5)
180
protected override
ToolStripDropDown
CreateDefaultDropDown()
430
if (ParentInternal is
ToolStripDropDown
parent)
460
if (ParentInternal is
ToolStripDropDown
parent)
472
internal bool IsTopLevel => ParentInternal as
ToolStripDropDown
is null;
856
ToolStripDropDown
dropDown = GetCurrentParentDropDown()!;
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.cs (1)
65
protected override
ToolStripDropDown
CreateDefaultDropDown()
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (2)
25
if (e.ToolStrip is
ToolStripDropDown
)
41
else if (e.ToolStrip is
ToolStripDropDown
)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (4)
125
if (toolStrip is
ToolStripDropDown
)
403
if (toolStrip is
ToolStripDropDown
)
835
if (toolStrip is
ToolStripDropDown
or MenuStrip or StatusStrip)
1192
if (e.ToolStrip is
ToolStripDropDown
toolStripDropDown)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (2)
75
if (ToolStrip is
ToolStripDropDown
)
96
if (ToolStrip is
ToolStripDropDown
dropDown)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
334
protected override
ToolStripDropDown
CreateDefaultDropDown()
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (1)
186
if (toolStrip is
ToolStripDropDown
toolStripDropDown)
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (2)
252
FillBackground(g, bounds, toolStrip is
ToolStripDropDown
296
else if (toolStrip is
ToolStripDropDown
toolStripDropDown)
System\Windows\Forms\Internal\WinFormsUtils.cs (1)
177
if (c is
ToolStripDropDown
dd && dd.OwnerItem is not null)
System.Windows.Forms.Design (105)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (1)
180
if (toplevel is
ToolStripDropDown
dropDown)
System\ComponentModel\Design\DesignerActionUI.cs (2)
189
if (comp is not Control or
ToolStripDropDown
)
666
if (relatedComponent is Control and not
ToolStripDropDown
)
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (1)
134
if (relatedComponent is Control relatedControl && !(relatedComponent is
ToolStripDropDown
) && _adorner?.BehaviorService is not null)
System\Windows\Forms\Design\ContextMenuStripActionList.cs (2)
11
private readonly
ToolStripDropDown
_toolStripDropDown;
17
_toolStripDropDown = (
ToolStripDropDown
)designer.Component;
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (1)
133
if (parent is
ToolStripDropDown
parentDropDown && parentDropDown.Visible)
System\Windows\Forms\Design\ToolStripDesigner.cs (11)
736
ToolStripDropDown
dropDown = (
ToolStripDropDown
)((DesignerToolStripControlHost)comp).GetCurrentParent();
740
ToolStripDropDown
topmost = ToolStripItemDesigner.GetFirstDropDown((ToolStripDropDownItem)(ownerItem));
752
ToolStripItem parentItem = ((
ToolStripDropDown
)(item.Owner)).OwnerItem;
755
ToolStripDropDown
topmost = ToolStripItemDesigner.GetFirstDropDown((ToolStripDropDownItem)parentItem);
795
if (designerItem.GetCurrentParent() is
ToolStripDropDown
parent)
1635
ToolStripDropDown
topmost = item.Owner as
ToolStripDropDown
;
1641
topmost = topmost?.OwnerItem.GetCurrentParent() as
ToolStripDropDown
;
2106
ToolStripDropDown
dropDown = sender as
ToolStripDropDown
;
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (5)
24
private
ToolStripDropDown
_dropDown;
351
_dropDown = (
ToolStripDropDown
)Component;
417
ToolStripDropDown
topmost = null;
445
if (item.GetCurrentParent() is not
ToolStripDropDown
parent)
448
parent = item.Owner as
ToolStripDropDown
;
System\Windows\Forms\Design\ToolStripInSituService.cs (3)
85
if (c.GetCurrentParent() is
ToolStripDropDown
dropDown)
117
else if (comp is
ToolStripDropDown
) // case for ToolStripDropDown..
180
if (designerItem is not null || comp is
ToolStripDropDown
)
System\Windows\Forms\Design\ToolStripItemBehavior.cs (8)
558
if (glyphItem.Owner is
ToolStripDropDown
parentDropDown)
611
ToolStripDropDown
dropDown = glyphItem.GetCurrentParent() as
ToolStripDropDown
;
678
if (parentToolStrip is
ToolStripDropDown
dropDown)
753
ToolStripDropDown
dropDown = parentToolStrip as
ToolStripDropDown
;
792
if (item.GetCurrentParent() is
ToolStripDropDown
dropDown && !(dropDown is ToolStripOverflow))
991
if (glyphItem.Owner is
ToolStripDropDown
parentDropDown)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (2)
348
InsertIntoDropDown((
ToolStripDropDown
)_currentItem.Owner, t);
370
private void InsertIntoDropDown(
ToolStripDropDown
parent, Type t)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (11)
208
if (ImmediateParent is
ToolStripDropDown
parentDropDown)
273
if (item.Owner is
ToolStripDropDown
parentDropDown)
590
internal static
ToolStripDropDown
GetFirstDropDown(ToolStripItem currentItem)
592
if (currentItem.Owner is
ToolStripDropDown
)
594
ToolStripDropDown
topmost = currentItem.Owner as
ToolStripDropDown
;
596
while (topmost.OwnerItem is not null && (topmost.OwnerItem.Owner is
ToolStripDropDown
))
598
topmost = topmost.OwnerItem.Owner as
ToolStripDropDown
;
719
if (ImmediateParent is
ToolStripDropDown
parentDropDown)
893
if (ToolStripItem.GetCurrentParent() is
ToolStripDropDown
964
if (TryGetService(out IDesignerHost designerHost) && currentSelection.Owner is
ToolStripDropDown
parentDropDown)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (15)
626
ToolStripDropDown
dropDown = ToolStripItemDesigner.GetFirstDropDown(item);
637
if (parent is
ToolStripDropDown
parentDropDown && parentDropDown.Visible)
847
ToolStripDropDownItem ownerItem = (ToolStripDropDownItem)((
ToolStripDropDown
)(typeHereNode.Owner)).OwnerItem;
933
ToolStripDropDownItem ownerItem = (ToolStripDropDownItem)((
ToolStripDropDown
)(typeHereNode.Owner)).OwnerItem;
1052
if (selSvc.PrimarySelection is
ToolStripDropDown
dropDown && dropDown.Site is not null)
1203
if (toolStripItem is DesignerToolStripControlHost && toolStripItem.GetCurrentParent() is
ToolStripDropDown
parent)
1260
ToolStripItem owner = ((
ToolStripDropDown
)item.Owner).OwnerItem;
1330
ToolStripDropDown
parentToMoveOn = null;
1351
parentToMoveOn = item.GetCurrentParent() as
ToolStripDropDown
;
1366
: dropDownItem.Owner) as
ToolStripDropDown
;
1372
parentToMoveOn = item.GetCurrentParent() as
ToolStripDropDown
;
1703
next = ((
ToolStripDropDown
)toolStripItem.Owner).OwnerItem;
1829
ToolStripItem parentItem = ((
ToolStripDropDown
)designerItem.Owner).OwnerItem;
1830
ToolStripDropDown
dropDown = ToolStripItemDesigner.GetFirstDropDown((ToolStripDropDownItem)parentItem);
1850
targetSelection = GetNextItem(owner, ((
ToolStripDropDown
)parent).OwnerItem, ArrowDirection.Left);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (42)
72
private
ToolStripDropDown
_customDropDown;
117
private
ToolStripDropDown
DropDown
292
if (toolItem.IsOnDropDown && toolItem.Owner is
ToolStripDropDown
dropDown)
333
if (MenuItem.Owner is
ToolStripDropDown
dropDown)
358
internal void AddNewTemplateNode(
ToolStripDropDown
dropDown)
428
if (!(MenuItem.Owner is
ToolStripDropDown
) && base.Editor is not null) // we are on Base MenuStrip !!
911
if (lastSelected.Owner is
ToolStripDropDown
lastDropDown && currentSelected.Owner is
ToolStripDropDown
currentDropDown)
945
while (currentItem?.Owner is
ToolStripDropDown
dropDown)
1069
ToolStripDropDown
dropDown = sender as
ToolStripDropDown
;
1145
ToolStripDropDown
dropDown = sender as
ToolStripDropDown
;
1228
selectedItem = ((
ToolStripDropDown
)item.Owner).OwnerItem as ToolStripDropDownItem;
1288
if (MenuItem.Owner is
ToolStripDropDown
dropDown)
1352
private static int GetItemInsertionIndex(
ToolStripDropDown
wb, Point ownerClientAreaRelativeDropPoint)
1378
ToolStripDropDown
topmost = GetFirstDropDown(MenuItem);
1395
if (MenuItem.Owner is
ToolStripDropDown
dropDown)
1405
if (item.Owner is
ToolStripDropDown
itemDropDown)
1432
if (item.Owner is
ToolStripDropDown
dropDown)
1527
ToolStripDropDown
firstDropDown = GetFirstDropDown(MenuItem);
1585
private bool IsParentDropDown(
ToolStripDropDown
currentDropDown)
1589
ToolStripDropDown
startDropDown = MenuItem.Owner as
ToolStripDropDown
;
1594
startDropDown = ownerItem.Owner as
ToolStripDropDown
;
1846
if (itemToBeDeleted.Owner is
ToolStripDropDown
owner)
1926
if (itemToBeDeleted.Owner is
ToolStripDropDown
owner)
2120
ToolStripDropDown
firstDropDown = GetFirstDropDown(MenuItem);
2168
ToolStripDropDown
parent = currentSelection.Owner as
ToolStripDropDown
;
2177
parent = parent.OwnerItem.Owner as
ToolStripDropDown
;
2187
if (selectedObj is
ToolStripDropDown
selectedDropDown && MenuItem.DropDown == selectedDropDown)
2196
ToolStripDropDown
parent = item.Owner as
ToolStripDropDown
;
2205
parent = parent.OwnerItem.Owner as
ToolStripDropDown
;
2446
if (MenuItem.Owner is
ToolStripDropDown
dropDown)
2485
ToolStripDropDown
ownerDropDown = (
ToolStripDropDown
)MenuItem.Owner;
2507
while (currentSelection is not null && currentSelection.Owner is
ToolStripDropDown
dropDown)
2509
ToolStripDropDown
currentDropDown = dropDown;
2632
ToolStripDropDown
parentToolStrip = primaryItem.GetCurrentParent() as
ToolStripDropDown
;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
460
ToolStripDropDown
oldContextMenu = _contextMenu;