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)
101if (item.Placement == ToolStripItemPlacement.Overflow) 292ToolStripItemPlacement 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)
76Assert.Equal(ToolStripItemPlacement.None, item.Placement); 157Assert.Equal(ToolStripItemPlacement.None, item.Placement); 244Assert.Equal(ToolStripItemPlacement.None, item.Placement); 334Assert.Equal(ToolStripItemPlacement.None, item.Placement); 422Assert.Equal(ToolStripItemPlacement.None, item.Placement); 520Assert.Equal(ToolStripItemPlacement.None, item.Placement);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
105Assert.Equal(ToolStripItemPlacement.None, item.Placement);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
76Assert.Equal(ToolStripItemPlacement.None, item.Placement); 165Assert.Equal(ToolStripItemPlacement.None, item.Placement); 264Assert.Equal(ToolStripItemPlacement.None, item.Placement); 372Assert.Equal(ToolStripItemPlacement.None, item.Placement);
System\Windows\Forms\ToolStripItemTests.cs (11)
75Assert.Equal(ToolStripItemPlacement.None, item.Placement); 160Assert.Equal(ToolStripItemPlacement.None, item.Placement); 255Assert.Equal(ToolStripItemPlacement.None, item.Placement); 6269Assert.Equal(expectedPlacement, item.Placement); 6277Assert.Equal(expectedPlacement, item.Placement); 6321Assert.Equal(expectedPlacement, item.Placement); 6332Assert.Equal(expectedPlacement, item.Placement); 6363Assert.Equal(ToolStripItemPlacement.None, item.Placement); 6371Assert.Equal(ToolStripItemPlacement.None, item.Placement); 6406Assert.Equal(ToolStripItemPlacement.None, item.Placement); 6417Assert.Equal(ToolStripItemPlacement.None, item.Placement);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
83Assert.Equal(ToolStripItemPlacement.None, item.Placement);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
73Assert.Equal(ToolStripItemPlacement.None, item.Placement);