65 references to Placement
System.Windows.Forms (21)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4271
ToolStripItemPlacement placement = item.
Placement
;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (2)
101
if (item.
Placement
== ToolStripItemPlacement.Overflow)
292
ToolStripItemPlacement placement = child.Owner.
Placement
;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.ToolStripHostedControlAccessibleObject.cs (1)
60
UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId => (VARIANT)GetIsOffscreenPropertyValue(_toolStripControlHost?.
Placement
, Bounds),
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
648
if (_ownerItem.
Placement
== ToolStripItemPlacement.Overflow && _ownerItem.Owner is not null)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
1239
public bool IsOnOverflow =>
Placement
== ToolStripItemPlacement.Overflow;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
113
UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId => (VARIANT)GetIsOffscreenPropertyValue(_ownerItem.
Placement
, Bounds),
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.ToolStripProgressBarControlAccessibleObject.cs (1)
36
UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId => (VARIANT)GetIsOffscreenPropertyValue(_ownerToolStripProgressBarControl.Owner?.
Placement
, Bounds),
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (12)
83
if (item.Overflow != ToolStripItemOverflow.Always && item.
Placement
== ToolStripItemPlacement.None)
133
if (item.Overflow != ToolStripItemOverflow.Always && item.
Placement
== ToolStripItemPlacement.None)
276
if (!needOverflow && (item.Overflow == ToolStripItemOverflow.AsNeeded && item.
Placement
== ToolStripItemPlacement.Overflow))
285
if (item.
Placement
== ToolStripItemPlacement.Main)
347
item.ParentInternal = (item.
Placement
== ToolStripItemPlacement.Overflow) ? toolStrip.OverflowButton.DropDown : null;
418
if (!needOverflow && (item.Overflow == ToolStripItemOverflow.AsNeeded && item.
Placement
== ToolStripItemPlacement.Overflow))
427
if (item.
Placement
== ToolStripItemPlacement.Main)
480
item.ParentInternal = (item.
Placement
== ToolStripItemPlacement.Overflow) ? toolStrip.OverflowButton.DropDown : null;
490
if ((item.
Placement
== ToolStripItemPlacement.Main) && !(item is ToolStripOverflowButton))
527
if (item.
Placement
== ToolStripItemPlacement.None)
549
if (toolStrip.Items[i].
Placement
== ToolStripItemPlacement.Overflow)
581
if (item.Overflow == ToolStripItemOverflow.AsNeeded && item.
Placement
!= ToolStripItemPlacement.Overflow)
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControlAccessibleObject.cs (1)
25
UIA_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)
474
if (item.
Placement
== ToolStripItemPlacement.Overflow)
665
if (designer is not null && item.
Placement
!= ToolStripItemPlacement.Overflow)
674
else if (designer is not null && item.
Placement
== ToolStripItemPlacement.Overflow)
754
if (item.
Placement
== ToolStripItemPlacement.Overflow && item.Owner == ToolStrip)
779
if (item.IsOnDropDown && item.
Placement
!= ToolStripItemPlacement.Overflow)
795
else if (item.IsOnDropDown && item.
Placement
!= ToolStripItemPlacement.Overflow)
1068
if (item.
Placement
== ToolStripItemPlacement.Overflow)
1303
if (item.
Placement
== ToolStripItemPlacement.Main)
2236
if (item.
Placement
== ToolStripItemPlacement.Overflow)
System\Windows\Forms\Design\ToolStripItemBehavior.cs (4)
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 (2)
507
protected virtual Component GetOwnerForActionList() => (ToolStripItem.
Placement
== ToolStripItemPlacement.Main) ? ToolStripItem.GetCurrentParent() : ToolStripItem.Owner;
1245
if (ToolStripItem.
Placement
!= ToolStripItemPlacement.None)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (4)
1376
parentToMoveOn = ((dropDownItem.
Placement
== ToolStripItemPlacement.Overflow)
1722
if (toolStripItem.IsOnDropDown && toolStripItem.
Placement
!= ToolStripItemPlacement.Overflow)
1726
else if (toolStripItem.IsOnDropDown && toolStripItem.
Placement
== ToolStripItemPlacement.Overflow)
1844
if (item is not null && item.IsOnDropDown && item.
Placement
!= ToolStripItemPlacement.Overflow)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1960
if (e.Component is ToolStripItem itemToBeDeleted && itemToBeDeleted.IsOnDropDown && itemToBeDeleted.
Placement
== ToolStripItemPlacement.Main)
System.Windows.Forms.Tests (24)
System\Windows\Forms\ToolStripButtonTests.cs (6)
76
Assert.Equal(ToolStripItemPlacement.None, item.
Placement
);
157
Assert.Equal(ToolStripItemPlacement.None, item.
Placement
);
244
Assert.Equal(ToolStripItemPlacement.None, item.
Placement
);
334
Assert.Equal(ToolStripItemPlacement.None, item.
Placement
);
422
Assert.Equal(ToolStripItemPlacement.None, item.
Placement
);
520
Assert.Equal(ToolStripItemPlacement.None, item.
Placement
);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
105
Assert.Equal(ToolStripItemPlacement.None, item.
Placement
);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
76
Assert.Equal(ToolStripItemPlacement.None, item.
Placement
);
165
Assert.Equal(ToolStripItemPlacement.None, item.
Placement
);
264
Assert.Equal(ToolStripItemPlacement.None, item.
Placement
);
372
Assert.Equal(ToolStripItemPlacement.None, item.
Placement
);
System\Windows\Forms\ToolStripItemTests.cs (11)
75
Assert.Equal(ToolStripItemPlacement.None, item.
Placement
);
160
Assert.Equal(ToolStripItemPlacement.None, item.
Placement
);
255
Assert.Equal(ToolStripItemPlacement.None, item.
Placement
);
6269
Assert.Equal(expectedPlacement, item.
Placement
);
6277
Assert.Equal(expectedPlacement, item.
Placement
);
6321
Assert.Equal(expectedPlacement, item.
Placement
);
6332
Assert.Equal(expectedPlacement, item.
Placement
);
6363
Assert.Equal(ToolStripItemPlacement.None, item.
Placement
);
6371
Assert.Equal(ToolStripItemPlacement.None, item.
Placement
);
6406
Assert.Equal(ToolStripItemPlacement.None, item.
Placement
);
6417
Assert.Equal(ToolStripItemPlacement.None, item.
Placement
);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
83
Assert.Equal(ToolStripItemPlacement.None, item.
Placement
);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
73
Assert.Equal(ToolStripItemPlacement.None, item.
Placement
);