14 writes to CanOverflow
System.Windows.Forms (5)
System\Windows\Forms\Controls\Menus\MenuStrip.cs (1)
53
set => base.
CanOverflow
= value;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
197
_toolStrip.
CanOverflow
= false;
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
51
set => base.
CanOverflow
= value;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
127
CanOverflow
= true;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
166
set => base.
CanOverflow
= value;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1488
_miniToolStrip.
CanOverflow
= false;
System.Windows.Forms.Tests (8)
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (1)
972
toolStrip.
CanOverflow
= canOverflow.Value;
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (1)
202
CanOverflow
= true,
System\Windows\Forms\ToolStripTests.cs (6)
1202
control.
CanOverflow
= value;
1208
control.
CanOverflow
= value;
1214
control.
CanOverflow
= !value;
1242
control.
CanOverflow
= value;
1251
control.
CanOverflow
= value;
1260
control.
CanOverflow
= !value;
27 references to CanOverflow
System.Windows.Forms (16)
System\Windows\Forms\Controls\Menus\MenuStrip.cs (1)
52
get => base.
CanOverflow
;
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
50
get => base.
CanOverflow
;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
1971
if (
CanOverflow
&& OverflowButton.HasDropDown)
1990
if (
CanOverflow
&& OverflowButton.HasDropDown)
4321
else if (
CanOverflow
)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (5)
109
if (owner.
CanOverflow
&& owner.OverflowButton.Visible && index == owner.Items.Count)
142
if (owner.
CanOverflow
&& owner.OverflowButton.Visible)
162
&& owner.
CanOverflow
301
if (owner.
CanOverflow
&& owner.OverflowButton.Visible && child.Owner == owner.OverflowButton)
342
if (owner.
CanOverflow
&& owner.OverflowButton.Visible && child.Owner == owner.OverflowButton)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
165
get => base.
CanOverflow
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (5)
34
if (!toolStrip.
CanOverflow
)
64
if (ToolStrip.
CanOverflow
)
114
if (ToolStrip.
CanOverflow
)
223
bool needOverflow = toolStrip.
CanOverflow
&& ((OverflowRequired) || (OverflowSpace >= OverflowButtonSize.Width));
377
bool needOverflow = toolStrip.
CanOverflow
&& ((OverflowRequired) || (OverflowSpace >= OverflowButtonSize.Height));
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
756
if (ToolStrip.
CanOverflow
&& !ToolStrip.OverflowButton.DropDown.Visible)
1020
if (ToolStrip.
CanOverflow
&& !ToolStrip.OverflowButton.DropDown.Visible)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1564
if ((topMostItem is not null && topMostItem.GetCurrentParent() is ToolStripOverflow) && !main.
CanOverflow
)
System.Windows.Forms.Tests (8)
System\Windows\Forms\ToolStripTests.cs (8)
42
Assert.True(control.
CanOverflow
);
202
Assert.True(control.
CanOverflow
);
1203
Assert.Equal(value, control.
CanOverflow
);
1209
Assert.Equal(value, control.
CanOverflow
);
1215
Assert.Equal(!value, control.
CanOverflow
);
1243
Assert.Equal(value, control.
CanOverflow
);
1252
Assert.Equal(value, control.
CanOverflow
);
1261
Assert.Equal(!value, control.
CanOverflow
);