95 references to IsOnDropDown
System.Windows.Forms (29)
System\Windows\Forms\Controls\Menus\MenuTimer.cs (1)
56
_autoMenuExpandTimer.Interval = item.
IsOnDropDown
? _slowShow : _quickShow;
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
241
if (keyData == Keys.Space && SupportsSpaceKey && CheckOnClick && Enabled && !
IsOnDropDown
)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
107
protected internal override Padding DefaultMargin =>
IsOnDropDown
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (7)
137
if (
IsOnDropDown
)
275
if (DropDown.AutoClose || !IsInDesignMode || (IsInDesignMode && !
IsOnDropDown
))
322
if (!
IsOnDropDown
)
499
(
IsOnDropDown
569
bool isTopLevel = (!
IsOnDropDown
|| IsOnOverflow);
614
if (
IsOnDropDown
)
665
if (
IsOnDropDown
)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (3)
179
if (!e.Item.
IsOnDropDown
&& e.Item.Pressed)
184
if (e.Item is ToolStripMenuItem menuItem && !e.Item.
IsOnDropDown
&& (menuItem.Checked || menuItem.Selected))
242
&& !e.Item.
IsOnDropDown
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (3)
3141
if (
IsOnDropDown
)
3143
if (OwnerItem is not null && OwnerItem.
IsOnDropDown
)
3167
(
IsOnDropDown
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (4)
77
if (_ownerItem.
IsOnDropDown
)
258
nextItem = (Owner.
IsOnDropDown
) ? parent.GetNextItem(Owner, ArrowDirection.Up) :
262
nextItem = (Owner.
IsOnDropDown
) ? parent.GetNextItem(Owner, ArrowDirection.Down) :
318
if (Owner.
IsOnDropDown
)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (4)
164
if (
IsOnDropDown
)
220
protected override Padding DefaultPadding =>
IsOnDropDown
397
if (ShowShortcutKeys &&
IsOnDropDown
)
857
if (
IsOnDropDown
)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (2)
558
if (item.
IsOnDropDown
)
1461
if (!item.
IsOnDropDown
)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (1)
106
if (ownerItem is not null && ownerItem.ParentInternal is not null && !ownerItem.
IsOnDropDown
)
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
445
if (item.
IsOnDropDown
)
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
75
protected internal override Padding DefaultMargin =>
IsOnDropDown
? _defaultDropDownMargin : _defaultMargin;
System.Windows.Forms.Design (42)
System\Windows\Forms\Design\ToolStripDesigner.cs (4)
779
if (item.
IsOnDropDown
&& item.Placement != ToolStripItemPlacement.Overflow)
795
else if (item.
IsOnDropDown
&& item.Placement != ToolStripItemPlacement.Overflow)
838
if (KeyboardHandlingService.SelectedDesignerControl is ToolStripItem designerItem && designerItem.
IsOnDropDown
)
894
if (e.Component is ToolStripItem newItem && _addingItem && !newItem.
IsOnDropDown
)
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (5)
59
if (!(item is ToolStripControlHost && item.
IsOnDropDown
))
62
if (item is ToolStripMenuItem && item.
IsOnDropDown
)
67
else if (item is ToolStripControlHost && !item.
IsOnDropDown
)
71
else if (item is ToolStripMenuItem && !item.
IsOnDropDown
)
450
selItem is ToolStripSeparator || selItem is ToolStripControlHost || !selItem.
IsOnDropDown
|| selItem.IsOnOverflow)
System\Windows\Forms\Design\ToolStripItemBehavior.cs (6)
432
if (glyphItem.
IsOnDropDown
&& ToolStripDesigner.s_shiftState)
549
if (glyphItem.Placement == ToolStripItemPlacement.Overflow || (glyphItem.Placement == ToolStripItemPlacement.Main && !(glyphItem.
IsOnDropDown
)))
558
else if (glyphItem.
IsOnDropDown
)
612
else if (glyphItem.
IsOnDropDown
&& !glyphItem.IsOnOverflow)
979
if (glyphItem.Placement == ToolStripItemPlacement.Overflow || (glyphItem.Placement == ToolStripItemPlacement.Main && !(glyphItem.
IsOnDropDown
)))
1000
else if (glyphItem.
IsOnDropDown
)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (7)
206
if (ToolStripItem.
IsOnDropDown
&& !ToolStripItem.IsOnOverflow)
264
if (item.
IsOnDropDown
)
427
if (newItem is not null && !newItem.
IsOnDropDown
)
582
if (ToolStripItem.
IsOnDropDown
)
738
if (ToolStripItem.
IsOnDropDown
)
857
if (newItem.
IsOnDropDown
&& ownerItemDesigner is not null)
985
if (currentSelection.
IsOnDropDown
)
System\Windows\Forms\Design\ToolStripItemGlyph.cs (1)
44
if (Item is ToolStripControlHost && Item.
IsOnDropDown
)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (12)
848
if (typeHereNode.
IsOnDropDown
&& !typeHereNode.IsOnOverflow)
943
if (typeHereNode.
IsOnDropDown
)
1244
if (item is null || !item.
IsOnDropDown
)
1273
if (!owner.
IsOnDropDown
)
1369
if (dropDownItem is not null && !dropDownItem.
IsOnDropDown
)
1401
&& !parentToMoveOn.OwnerItem.
IsOnDropDown
1443
&& !parentToMoveOn.OwnerItem.
IsOnDropDown
1722
if (toolStripItem.
IsOnDropDown
&& toolStripItem.Placement != ToolStripItemPlacement.Overflow)
1726
else if (toolStripItem.
IsOnDropDown
&& toolStripItem.Placement == ToolStripItemPlacement.Overflow)
1787
if (currentSelection is DesignerToolStripControlHost templateNodeItem && (!templateNodeItem.
IsOnDropDown
|| (templateNodeItem.
IsOnDropDown
&& templateNodeItem.IsOnOverflow)))
1844
if (item is not null && item.
IsOnDropDown
&& item.Placement != ToolStripItemPlacement.Overflow)
System\Windows\Forms\Design\ToolStripMenuItemCodeDomSerializer.cs (1)
37
if (value is ToolStripMenuItem {
IsOnDropDown
: false } item)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (4)
292
if (toolItem.
IsOnDropDown
&& toolItem.Owner is ToolStripDropDown dropDown)
328
if (!ToolStripItem.IsOnOverflow && ToolStripItem.
IsOnDropDown
)
1877
if (e.Component is ToolStripItem itemToBeDeleted && itemToBeDeleted.
IsOnDropDown
)
1960
if (e.Component is ToolStripItem itemToBeDeleted && itemToBeDeleted.
IsOnDropDown
&& itemToBeDeleted.Placement == ToolStripItemPlacement.Main)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
570
if (!selectedItem.
IsOnDropDown
)
888
if (_activeItem is ToolStripDropDownItem item && !item.
IsOnDropDown
)
System.Windows.Forms.Tests (24)
System\Windows\Forms\ToolStripButtonTests.cs (6)
66
Assert.False(item.
IsOnDropDown
);
147
Assert.False(item.
IsOnDropDown
);
234
Assert.False(item.
IsOnDropDown
);
324
Assert.False(item.
IsOnDropDown
);
412
Assert.False(item.
IsOnDropDown
);
510
Assert.False(item.
IsOnDropDown
);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
95
Assert.False(item.
IsOnDropDown
);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
66
Assert.False(item.
IsOnDropDown
);
155
Assert.False(item.
IsOnDropDown
);
254
Assert.False(item.
IsOnDropDown
);
362
Assert.False(item.
IsOnDropDown
);
System\Windows\Forms\ToolStripItemTests.cs (11)
65
Assert.False(item.
IsOnDropDown
);
150
Assert.False(item.
IsOnDropDown
);
245
Assert.False(item.
IsOnDropDown
);
5817
Assert.False(item.
IsOnDropDown
);
5828
Assert.True(item.
IsOnDropDown
);
5842
Assert.False(item.
IsOnDropDown
);
5844
Assert.True(item.
IsOnDropDown
);
5855
Assert.False(item.
IsOnDropDown
);
5866
Assert.True(item.
IsOnDropDown
);
5880
Assert.False(item.
IsOnDropDown
);
5882
Assert.False(item.
IsOnDropDown
);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
71
Assert.False(item.
IsOnDropDown
);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
63
Assert.False(item.
IsOnDropDown
);