43 references to IsOnOverflow
System.Windows.Forms (5)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
2466
if (!IsDropDown && dismissingItem.
IsOnOverflow
)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (1)
100
&& toolStripComboBox.Owner.
IsOnOverflow
)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1320
bool isOnOverflow = (OwnerItem is not null && OwnerItem.
IsOnOverflow
);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
569
bool isTopLevel = (!IsOnDropDown ||
IsOnOverflow
);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3426
parent ??= (
IsOnOverflow
&& Owner is not null) ? Owner.OverflowButton.DropDown : Owner;
System.Windows.Forms.Design (12)
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
2003
if (SelectionService.PrimarySelection is ToolStripItem curSel && curSel.
IsOnOverflow
)
2033
if (!(SelectionService.PrimarySelection is ToolStripItem curSel) || (curSel is not null && !curSel.
IsOnOverflow
))
2052
&& item.
IsOnOverflow
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
450
selItem is ToolStripSeparator || selItem is ToolStripControlHost || !selItem.IsOnDropDown || selItem.
IsOnOverflow
)
System\Windows\Forms\Design\ToolStripItemBehavior.cs (2)
396
if (glyphItem.
IsOnOverflow
)
612
else if (glyphItem.IsOnDropDown && !glyphItem.
IsOnOverflow
)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (3)
173
if (ToolStripItem.
IsOnOverflow
)
206
if (ToolStripItem.IsOnDropDown && !ToolStripItem.
IsOnOverflow
)
266
if (item.
IsOnOverflow
)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (2)
848
if (typeHereNode.IsOnDropDown && !typeHereNode.
IsOnOverflow
)
1787
if (currentSelection is DesignerToolStripControlHost templateNodeItem && (!templateNodeItem.IsOnDropDown || (templateNodeItem.IsOnDropDown && templateNodeItem.
IsOnOverflow
)))
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
328
if (!ToolStripItem.
IsOnOverflow
&& ToolStripItem.IsOnDropDown)
System.Windows.Forms.Tests (26)
System\Windows\Forms\ToolStripButtonTests.cs (6)
67
Assert.False(item.
IsOnOverflow
);
148
Assert.False(item.
IsOnOverflow
);
235
Assert.False(item.
IsOnOverflow
);
325
Assert.False(item.
IsOnOverflow
);
413
Assert.False(item.
IsOnOverflow
);
511
Assert.False(item.
IsOnOverflow
);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
96
Assert.False(item.
IsOnOverflow
);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
67
Assert.False(item.
IsOnOverflow
);
156
Assert.False(item.
IsOnOverflow
);
255
Assert.False(item.
IsOnOverflow
);
363
Assert.False(item.
IsOnOverflow
);
System\Windows\Forms\ToolStripItemTests.cs (13)
66
Assert.False(item.
IsOnOverflow
);
151
Assert.False(item.
IsOnOverflow
);
246
Assert.False(item.
IsOnOverflow
);
6234
Assert.False(item.
IsOnOverflow
);
6239
Assert.False(item.
IsOnOverflow
);
6268
Assert.Equal(value == ToolStripItemOverflow.Always, item.
IsOnOverflow
);
6276
Assert.Equal(value == ToolStripItemOverflow.Always, item.
IsOnOverflow
);
6320
Assert.Equal(value == ToolStripItemOverflow.Always, item.
IsOnOverflow
);
6331
Assert.Equal(value == ToolStripItemOverflow.Always, item.
IsOnOverflow
);
6362
Assert.False(item.
IsOnOverflow
);
6370
Assert.False(item.
IsOnOverflow
);
6405
Assert.False(item.
IsOnOverflow
);
6416
Assert.False(item.
IsOnOverflow
);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
72
Assert.False(item.
IsOnOverflow
);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
64
Assert.False(item.
IsOnOverflow
);