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