65 references to Placement
System.Windows.Forms (21)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4271ToolStripItemPlacement placement = item.Placement;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (2)
100if (item.Placement == ToolStripItemPlacement.Overflow) 291ToolStripItemPlacement placement = child.Owner.Placement;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.ToolStripHostedControlAccessibleObject.cs (1)
60UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId => (VARIANT)GetIsOffscreenPropertyValue(_toolStripControlHost?.Placement, Bounds),
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
648if (_ownerItem.Placement == ToolStripItemPlacement.Overflow && _ownerItem.Owner is not null)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
1239public bool IsOnOverflow => Placement == ToolStripItemPlacement.Overflow;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
113UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId => (VARIANT)GetIsOffscreenPropertyValue(_ownerItem.Placement, Bounds),
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.ToolStripProgressBarControlAccessibleObject.cs (1)
36UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId => (VARIANT)GetIsOffscreenPropertyValue(_ownerToolStripProgressBarControl.Owner?.Placement, Bounds),
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (12)
83if (item.Overflow != ToolStripItemOverflow.Always && item.Placement == ToolStripItemPlacement.None) 133if (item.Overflow != ToolStripItemOverflow.Always && item.Placement == ToolStripItemPlacement.None) 276if (!needOverflow && (item.Overflow == ToolStripItemOverflow.AsNeeded && item.Placement == ToolStripItemPlacement.Overflow)) 285if (item.Placement == ToolStripItemPlacement.Main) 347item.ParentInternal = (item.Placement == ToolStripItemPlacement.Overflow) ? toolStrip.OverflowButton.DropDown : null; 418if (!needOverflow && (item.Overflow == ToolStripItemOverflow.AsNeeded && item.Placement == ToolStripItemPlacement.Overflow)) 427if (item.Placement == ToolStripItemPlacement.Main) 480item.ParentInternal = (item.Placement == ToolStripItemPlacement.Overflow) ? toolStrip.OverflowButton.DropDown : null; 490if ((item.Placement == ToolStripItemPlacement.Main) && !(item is ToolStripOverflowButton)) 527if (item.Placement == ToolStripItemPlacement.None) 549if (toolStrip.Items[i].Placement == ToolStripItemPlacement.Overflow) 581if (item.Overflow == ToolStripItemOverflow.AsNeeded && item.Placement != ToolStripItemPlacement.Overflow)
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControlAccessibleObject.cs (1)
25UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId when this.TryGetOwnerAs(out TextBox? owner) => (VARIANT)GetIsOffscreenPropertyValue(owner.ToolStripControlHost?.Placement, Bounds),
System.Windows.Forms.Design (20)
System\Windows\Forms\Design\ToolStripDesigner.cs (9)
474if (item.Placement == ToolStripItemPlacement.Overflow) 665if (designer is not null && item.Placement != ToolStripItemPlacement.Overflow) 674else if (designer is not null && item.Placement == ToolStripItemPlacement.Overflow) 754if (item.Placement == ToolStripItemPlacement.Overflow && item.Owner == ToolStrip) 779if (item.IsOnDropDown && item.Placement != ToolStripItemPlacement.Overflow) 795else if (item.IsOnDropDown && item.Placement != ToolStripItemPlacement.Overflow) 1068if (item.Placement == ToolStripItemPlacement.Overflow) 1303if (item.Placement == ToolStripItemPlacement.Main) 2236if (item.Placement == ToolStripItemPlacement.Overflow)
System\Windows\Forms\Design\ToolStripItemBehavior.cs (4)
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 (2)
507protected virtual Component GetOwnerForActionList() => (ToolStripItem.Placement == ToolStripItemPlacement.Main) ? ToolStripItem.GetCurrentParent() : ToolStripItem.Owner; 1245if (ToolStripItem.Placement != ToolStripItemPlacement.None)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (4)
1376parentToMoveOn = ((dropDownItem.Placement == ToolStripItemPlacement.Overflow) 1722if (toolStripItem.IsOnDropDown && toolStripItem.Placement != ToolStripItemPlacement.Overflow) 1726else if (toolStripItem.IsOnDropDown && toolStripItem.Placement == ToolStripItemPlacement.Overflow) 1844if (item is not null && item.IsOnDropDown && item.Placement != ToolStripItemPlacement.Overflow)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1960if (e.Component is ToolStripItem itemToBeDeleted && itemToBeDeleted.IsOnDropDown && itemToBeDeleted.Placement == ToolStripItemPlacement.Main)
System.Windows.Forms.Tests (24)
System\Windows\Forms\ToolStripButtonTests.cs (6)
78Assert.Equal(ToolStripItemPlacement.None, item.Placement); 159Assert.Equal(ToolStripItemPlacement.None, item.Placement); 246Assert.Equal(ToolStripItemPlacement.None, item.Placement); 336Assert.Equal(ToolStripItemPlacement.None, item.Placement); 424Assert.Equal(ToolStripItemPlacement.None, item.Placement); 522Assert.Equal(ToolStripItemPlacement.None, item.Placement);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
107Assert.Equal(ToolStripItemPlacement.None, item.Placement);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
78Assert.Equal(ToolStripItemPlacement.None, item.Placement); 167Assert.Equal(ToolStripItemPlacement.None, item.Placement); 266Assert.Equal(ToolStripItemPlacement.None, item.Placement); 374Assert.Equal(ToolStripItemPlacement.None, item.Placement);
System\Windows\Forms\ToolStripItemTests.cs (11)
77Assert.Equal(ToolStripItemPlacement.None, item.Placement); 162Assert.Equal(ToolStripItemPlacement.None, item.Placement); 257Assert.Equal(ToolStripItemPlacement.None, item.Placement); 6271Assert.Equal(expectedPlacement, item.Placement); 6279Assert.Equal(expectedPlacement, item.Placement); 6323Assert.Equal(expectedPlacement, item.Placement); 6334Assert.Equal(expectedPlacement, item.Placement); 6365Assert.Equal(ToolStripItemPlacement.None, item.Placement); 6373Assert.Equal(ToolStripItemPlacement.None, item.Placement); 6408Assert.Equal(ToolStripItemPlacement.None, item.Placement); 6419Assert.Equal(ToolStripItemPlacement.None, item.Placement);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
81Assert.Equal(ToolStripItemPlacement.None, item.Placement);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
75Assert.Equal(ToolStripItemPlacement.None, item.Placement);