1 override of DisplayedItems
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflow.cs (1)
20
protected internal override ToolStripItemCollection
DisplayedItems
87 references to DisplayedItems
System.Windows.Forms (82)
System\Windows\Forms\Controls\Menus\MenuStrip.cs (3)
206
if (
DisplayedItems
.Count > 0)
208
if (
DisplayedItems
[0] is MdiControlStrip.SystemMenuItem)
210
SelectNextToolStripItem(
DisplayedItems
[0], forward: true);
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (14)
337
int itemCount =
DisplayedItems
.Count;
340
inDisplayedItemCollection =
DisplayedItems
.Contains(item);
350
if (itemCount !=
DisplayedItems
.Count || (item is not null && (inDisplayedItemCollection !=
DisplayedItems
.Contains(item))))
468
for (int i = 0; i <
DisplayedItems
.Count; i++)
477
bool spring = (
DisplayedItems
[i] is ToolStripStatusLabel panel && panel.Spring);
478
DisplayedItems
[i].Anchor = (spring) ? AllAnchor : VerticalAnchor;
496
TableLayoutSettings.ColumnCount =
DisplayedItems
.Count + 1; // add an extra cell so it fills the remaining space
499
for (int i =
DisplayedItems
.Count; i < TableLayoutSettings.ColumnStyles.Count; i++)
515
for (int i = 0; i <
DisplayedItems
.Count; i++)
524
bool spring = (
DisplayedItems
[i] is ToolStripStatusLabel panel && panel.Spring);
525
DisplayedItems
[i].Anchor = (spring) ? AllAnchor : HorizontalAnchor;
545
TableLayoutSettings.RowCount =
DisplayedItems
.Count + 1; // add an extra cell so it fills the remaining space
548
for (int i =
DisplayedItems
.Count; i < TableLayoutSettings.RowStyles.Count; i++)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (40)
1787
ToolStripItem[] displayedItems = new ToolStripItem[
DisplayedItems
.Count];
1788
DisplayedItems
.CopyTo(displayedItems, 0);
2070
if (
DisplayedItems
.Count <= 0)
2081
start ??= forward ?
DisplayedItems
[
DisplayedItems
.Count - 1] :
DisplayedItems
[0];
2083
int current =
DisplayedItems
.IndexOf(start);
2089
int count =
DisplayedItems
.Count;
2105
return
DisplayedItems
[current];
2108
if (
DisplayedItems
[current].CanKeyboardSelect)
2110
return
DisplayedItems
[current];
2113
while (
DisplayedItems
[current] != start);
2143
for (int i = 0; i <
DisplayedItems
.Count; i++)
2145
ToolStripItem otherItem =
DisplayedItems
[i];
2404
for (int i = 0; i <
DisplayedItems
.Count; i++)
2406
if (
DisplayedItems
[i].Selected)
2408
selectedItem =
DisplayedItems
[i];
2542
for (int j = 0; j <
DisplayedItems
.Count; j++)
2544
if (((
DisplayedItems
[j].DisplayStyle & ToolStripItemDisplayStyle.Text) == ToolStripItemDisplayStyle.Text))
2546
DisplayedItems
[j].InvalidateItemLayout("ShowKeyboardFocusCues");
2878
startIndex =
DisplayedItems
.IndexOf(startingItem);
2888
for (int i = 0; i <
DisplayedItems
.Count; i++)
2890
ToolStripItem currentItem =
DisplayedItems
[index];
2892
index = (index + 1) %
DisplayedItems
.Count;
2951
for (int i = 0; i <
DisplayedItems
.Count; i++)
2953
ToolStripItem currentItem =
DisplayedItems
[index];
2954
index = (index + 1) %
DisplayedItems
.Count;
3499
for (int i = 0; i <
DisplayedItems
.Count; i++)
3501
ToolStripItem item =
DisplayedItems
[i];
3887
for (int i = 0; i <
DisplayedItems
.Count; i++)
3889
if (
DisplayedItems
[i] is null ||
DisplayedItems
[i].ParentInternal != this)
3894
bounds =
DisplayedItems
[i].Bounds;
3897
if (_toolStripGrip is not null &&
DisplayedItems
[i] == _toolStripGrip)
3904
return
DisplayedItems
[i];
4235
DisplayedItems
.Clear();
4245
DisplayedItems
.Add(Grip);
4296
DisplayedItems
.Add(item);
4323
DisplayedItems
.Add(OverflowButton);
4356
DisplayedItems
.Add(item);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (4)
158
: owner.
DisplayedItems
;
270
if (!this.TryGetOwnerAs(out ToolStrip? owner) || owner.
DisplayedItems
is null)
275
return owner.
DisplayedItems
.Count;
307
? owner.
DisplayedItems
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1589
CancelEventArgs openEventArgs = new(cancel:
DisplayedItems
.Count == 0);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItemAccessibleObject.cs (3)
185
int index = dropDown.
DisplayedItems
.IndexOf(_owner);
195
if (index >= 0 && index < dropDown.
DisplayedItems
.Count)
197
ToolStripItem item = dropDown.
DisplayedItems
[index];
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (2)
777
DisplayedItems
.Insert(0, UpScrollButton);
778
DisplayedItems
.Add(DownScrollButton);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
2018
int index = ParentInternal.
DisplayedItems
.IndexOf(this);
3550
ToolStripItemCollection items = _parent.
DisplayedItems
;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemAccessibleObject.cs (2)
63
ToolStripItemCollection? displayedItems = _owningToolStripMenuItem.ParentInternal?.
DisplayedItems
;
98
ToolStripItemCollection? displayedItems = _owningToolStripMenuItem.ParentInternal?.
DisplayedItems
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (11)
172
for (int i = 0; i < _owner.
DisplayedItems
.Count; i++)
174
Rectangle bounds = _owner.
DisplayedItems
[i].Bounds;
175
bounds.Inflate(_owner.
DisplayedItems
[i].Margin.Size);
179
return _owner.Items.IndexOf(_owner.
DisplayedItems
[i]);
183
if (_owner.
DisplayedItems
.Count > 0)
185
for (int i = 0; i < _owner.
DisplayedItems
.Count; i++)
187
if (_owner.
DisplayedItems
[i].Alignment == ToolStripItemAlignment.Right)
191
return _owner.Items.IndexOf(_owner.
DisplayedItems
[i - 1]);
194
return _owner.Items.IndexOf(_owner.
DisplayedItems
[i]);
198
return _owner.Items.IndexOf(_owner.
DisplayedItems
[_owner.
DisplayedItems
.Count - 1]);
System.Windows.Forms.Tests (5)
System\Windows\Forms\MenuStripTests.cs (1)
878
public new ToolStripItemCollection DisplayedItems => base.
DisplayedItems
;
System\Windows\Forms\StatusStripTests.cs (1)
1300
public new ToolStripItemCollection DisplayedItems => base.
DisplayedItems
;
System\Windows\Forms\ToolStripDropDownTests.cs (1)
5118
public new ToolStripItemCollection DisplayedItems => base.
DisplayedItems
;
System\Windows\Forms\ToolStripTests.cs (2)
7501
public new ToolStripItemCollection DisplayedItems => base.
DisplayedItems
;
7554
public new ToolStripItemCollection DisplayedItems => base.
DisplayedItems
;