23 references to Main
System.Windows.Forms (12)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
4274if (placement == ToolStripItemPlacement.Main) 4357item.SetPlacement(ToolStripItemPlacement.Main);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (1)
307items = placement == ToolStripItemPlacement.Main || child.Owner is ToolStripScrollButton
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3503return toolStripItemPlacement != ToolStripItemPlacement.Main || bounds.Height <= 0 || bounds.Width <= 0;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (8)
250item.SetPlacement(ToolStripItemPlacement.Main); 278item.SetPlacement(ToolStripItemPlacement.Main); 285if (item.Placement == ToolStripItemPlacement.Main) 392item.SetPlacement(ToolStripItemPlacement.Main); 420item.SetPlacement(ToolStripItemPlacement.Main); 427if (item.Placement == ToolStripItemPlacement.Main) 490if ((item.Placement == ToolStripItemPlacement.Main) && !(item is ToolStripOverflowButton)) 533item.SetPlacement(ToolStripItemPlacement.Main);
System.Windows.Forms.Design (5)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1304if (item.Placement == ToolStripItemPlacement.Main)
System\Windows\Forms\Design\ToolStripItemBehavior.cs (2)
549if (glyphItem.Placement == ToolStripItemPlacement.Overflow || (glyphItem.Placement == ToolStripItemPlacement.Main && !(glyphItem.IsOnDropDown))) 979if (glyphItem.Placement == ToolStripItemPlacement.Overflow || (glyphItem.Placement == ToolStripItemPlacement.Main && !(glyphItem.IsOnDropDown)))
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
507protected virtual Component GetOwnerForActionList() => (ToolStripItem.Placement == ToolStripItemPlacement.Main) ? ToolStripItem.GetCurrentParent() : ToolStripItem.Owner;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1960if (e.Component is ToolStripItem itemToBeDeleted && itemToBeDeleted.IsOnDropDown && itemToBeDeleted.Placement == ToolStripItemPlacement.Main)
System.Windows.Forms.Tests (6)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (3)
1510host.SetPlacement(ToolStripItemPlacement.Main); 1548host.SetPlacement(ToolStripItemPlacement.Main); 1584host.SetPlacement(ToolStripItemPlacement.Main);
System\Windows\Forms\ToolStripItemTests.cs (2)
6243[InlineData(ToolStripItemOverflow.Never, ToolStripItemPlacement.Main, 1)] 6288[InlineData(ToolStripItemOverflow.Never, ToolStripItemPlacement.Main, 1)]
System\Windows\Forms\ToolStripTests.cs (1)
5827item.SetPlacement(ToolStripItemPlacement.Main);