48 references to ToolStripItemPlacement
System.Windows.Forms (48)
winforms\Managed\System\WinForms\StatusStrip.cs (3)
394
item.SetPlacement(
ToolStripItemPlacement
.None);
400
item.SetPlacement(
ToolStripItemPlacement
.None);
409
item.SetPlacement(
ToolStripItemPlacement
.None);
winforms\Managed\System\WinForms\ToolStrip.cs (10)
4380
ToolStripItemPlacement
placement = item.Placement;
4382
if (placement ==
ToolStripItemPlacement
.Main) {
4400
else if (placement ==
ToolStripItemPlacement
.Overflow && !(item is ToolStripSeparator)) {
4404
item.SetPlacement(
ToolStripItemPlacement
.None);
4412
item.SetPlacement(
ToolStripItemPlacement
.None);
4456
item.SetPlacement(
ToolStripItemPlacement
.Main);
4460
item.SetPlacement(
ToolStripItemPlacement
.None);
4897
if (item.Placement ==
ToolStripItemPlacement
.Overflow) {
4995
var
placement = child.Owner.Placement;
5007
items = (placement ==
ToolStripItemPlacement
.Main) ? owner.DisplayedItems : owner.OverflowItems;
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
839
if (ownerItem.Placement ==
ToolStripItemPlacement
.Overflow && ownerItem.Owner != null) {
winforms\Managed\System\WinForms\ToolStripItem.cs (6)
57
private
ToolStripItemPlacement
placement =
ToolStripItemPlacement
.None;
1480
return (this.Placement ==
ToolStripItemPlacement
.Overflow);
1900
public
ToolStripItemPlacement
Placement {
3644
internal void SetPlacement(
ToolStripItemPlacement
placement) {
4178
return ownerItem.Placement !=
ToolStripItemPlacement
.Main;
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (28)
119
if (item.Overflow != ToolStripItemOverflow.Always && item.Placement ==
ToolStripItemPlacement
.None) {
169
if (item.Overflow != ToolStripItemOverflow.Always && item.Placement ==
ToolStripItemPlacement
.None) {
281
item.SetPlacement(
ToolStripItemPlacement
.Main);
286
item.SetPlacement(
ToolStripItemPlacement
.None);
305
if (!needOverflow && (item.Overflow == ToolStripItemOverflow.AsNeeded && item.Placement ==
ToolStripItemPlacement
.Overflow)) {
309
item.SetPlacement(
ToolStripItemPlacement
.Main);
317
if ((item != null) && (item.Placement ==
ToolStripItemPlacement
.Main)) {
354
item.SetPlacement(
ToolStripItemPlacement
.None);
358
item.SetPlacement(
ToolStripItemPlacement
.None);
374
item.ParentInternal = (item.Placement ==
ToolStripItemPlacement
.Overflow) ? toolStrip.OverflowButton.DropDown : null;
417
item.SetPlacement(
ToolStripItemPlacement
.Main);
421
item.SetPlacement(
ToolStripItemPlacement
.None);
442
if (!needOverflow && (item.Overflow == ToolStripItemOverflow.AsNeeded && item.Placement ==
ToolStripItemPlacement
.Overflow)) {
446
item.SetPlacement(
ToolStripItemPlacement
.Main);
453
if ((item != null) && (item.Placement ==
ToolStripItemPlacement
.Main)) {
479
item.SetPlacement(
ToolStripItemPlacement
.None);
483
item.SetPlacement(
ToolStripItemPlacement
.None);
499
item.ParentInternal = (item.Placement ==
ToolStripItemPlacement
.Overflow) ? toolStrip.OverflowButton.DropDown : null;
513
if ((item.Placement ==
ToolStripItemPlacement
.Main)
528
item.SetPlacement(
ToolStripItemPlacement
.None);
540
item.SetPlacement(
ToolStripItemPlacement
.None);
554
if (item.Placement ==
ToolStripItemPlacement
.None) {
558
item.SetPlacement(
ToolStripItemPlacement
.Main);
561
item.SetPlacement(
ToolStripItemPlacement
.Overflow);
571
if (toolStrip.Items[i].Placement ==
ToolStripItemPlacement
.Overflow) {
575
toolStrip.Items[i].SetPlacement(
ToolStripItemPlacement
.None);
603
if (item.Overflow == ToolStripItemOverflow.AsNeeded && item.Placement !=
ToolStripItemPlacement
.Overflow) {
622
item.SetPlacement(
ToolStripItemPlacement
.Overflow);