1 override of DisplayedItems
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ToolStripOverflow.cs (1)
48
protected internal override ToolStripItemCollection
DisplayedItems
{
91 references to DisplayedItems
System.Windows.Forms (91)
winforms\Managed\System\WinForms\MenuStrip.cs (3)
223
if (
DisplayedItems
.Count > 0) {
224
if (
DisplayedItems
[0] is MdiControlStrip.SystemMenuItem) {
225
SelectNextToolStripItem(
DisplayedItems
[0], /*forward=*/true);
winforms\Managed\System\WinForms\StatusStrip.cs (14)
337
int itemCount =
DisplayedItems
.Count;
339
inDisplayedItemCollecton =
DisplayedItems
.Contains(item);
348
if (itemCount !=
DisplayedItems
.Count || (item != null && (inDisplayedItemCollecton !=
DisplayedItems
.Contains(item)))) {
470
for (int i = 0; i < this.
DisplayedItems
.Count; i++) {
477
ToolStripStatusLabel panel =
DisplayedItems
[i] as ToolStripStatusLabel;
479
DisplayedItems
[i].Anchor = (spring) ? AllAnchor : VerticalAnchor;
495
TableLayoutSettings.ColumnCount =
DisplayedItems
.Count+1; // add an extra cell so it fills the remaining space
498
for (int i =
DisplayedItems
.Count; i < TableLayoutSettings.ColumnStyles.Count; i++) {
512
for (int i = 0; i < this.
DisplayedItems
.Count; i++) {
519
ToolStripStatusLabel panel =
DisplayedItems
[i] as ToolStripStatusLabel;
521
DisplayedItems
[i].Anchor = (spring) ? AllAnchor : HorizontalAnchor;
539
TableLayoutSettings.RowCount =
DisplayedItems
.Count+1; // add an extra cell so it fills the remaining space
542
for (int i =
DisplayedItems
.Count; i < TableLayoutSettings.RowStyles.Count; i++) {
winforms\Managed\System\WinForms\ToolStrip.cs (69)
1994
for (int i = 0; i <
DisplayedItems
.Count; i++) {
1995
if (
DisplayedItems
[i] == item) {
1998
else if (item != null &&
DisplayedItems
[i].Pressed) {
2000
ToolStripDropDownItem dropDownItem =
DisplayedItems
[i] as ToolStripDropDownItem;
2007
if (
DisplayedItems
[i].Selected) {
2008
DisplayedItems
[i].Unselect();
2009
Debug.WriteLineIf(SelectionDebug.TraceVerbose,"[SelectDBG ClearAllSelectionsExcept] Unselecting " +
DisplayedItems
[i].Text);
2019
region.Union(
DisplayedItems
[i].Bounds);
2041
int focusIndex =
DisplayedItems
.IndexOf(item);
2254
if (
DisplayedItems
.Count <= 0)
2265
int current =
DisplayedItems
.IndexOf(start);
2271
Debug.WriteLineIf(SelectionDebug.TraceVerbose && (current != -1), "[SelectDBG GetNextToolStripItem] Last selected item was " + ((current != -1) ?
DisplayedItems
[current].Text : ""));
2274
int count =
DisplayedItems
.Count;
2288
return
DisplayedItems
[current];
2291
if (
DisplayedItems
[current].CanKeyboardSelect) {
2292
Debug.WriteLineIf(SelectionDebug.TraceVerbose, "[SelectDBG GetNextToolStripItem] selecting " +
DisplayedItems
[current].Text);
2294
return
DisplayedItems
[current];
2297
} while (
DisplayedItems
[current] != start);
2303
return
DisplayedItems
[
DisplayedItems
.Count - 1];
2308
return
DisplayedItems
[
DisplayedItems
.Count > 1 ? 1 : 0];
2311
return
DisplayedItems
[0];
2349
for(int i = 0; i <
DisplayedItems
.Count; i++) {
2350
ToolStripItem otherItem =
DisplayedItems
[i];
2605
for (int i = 0; i <
DisplayedItems
.Count; i++) {
2606
if (
DisplayedItems
[i].Selected) {
2607
selectedItem =
DisplayedItems
[i];
2724
for (int j = 0; j <
DisplayedItems
.Count; j++) {
2725
if (((
DisplayedItems
[j].DisplayStyle & ToolStripItemDisplayStyle.Text) == ToolStripItemDisplayStyle.Text)){
2726
DisplayedItems
[j].InvalidateItemLayout("ShowKeyboardFocusCues");
3044
startIndex =
DisplayedItems
.IndexOf(startingItem);
3053
for (int i = 0; i <
DisplayedItems
.Count; i++) {
3054
ToolStripItem currentItem =
DisplayedItems
[index];
3056
index = (index +1)%
DisplayedItems
.Count;
3102
for (int i = 0; i <
DisplayedItems
.Count; i++) {
3103
ToolStripItem currentItem =
DisplayedItems
[index];
3104
index = (index +1)%
DisplayedItems
.Count;
3682
for (int i = 0; i <
DisplayedItems
.Count; i++) {
3683
ToolStripItem item =
DisplayedItems
[i];
4040
for (int i = 0; i < this.
DisplayedItems
.Count; i++) {
4041
if (
DisplayedItems
[i] == null ||
DisplayedItems
[i].ParentInternal != this) {
4045
bounds =
DisplayedItems
[i].Bounds;
4048
if (toolStripGrip != null &&
DisplayedItems
[i] == toolStripGrip) {
4052
return this.
DisplayedItems
[i];
4347
this.
DisplayedItems
.Clear();
4356
this.
DisplayedItems
.Add(Grip);
4397
this.
DisplayedItems
.Add(item);
4425
this.
DisplayedItems
.Add(OverflowButton);
4455
this.
DisplayedItems
.Add(item);
4935
var items = getOverflowItem ? owner.OverflowItems : owner.
DisplayedItems
;
4978
if (owner == null || owner.
DisplayedItems
== null) {
4982
return owner.
DisplayedItems
.Count;
4999
items = owner.
DisplayedItems
;
5007
items = (placement == ToolStripItemPlacement.Main) ? owner.
DisplayedItems
: owner.OverflowItems;
5509
for(int i = 0; i< owner.
DisplayedItems
.Count; i++) {
5510
Rectangle bounds = owner.
DisplayedItems
[i].Bounds;
5511
bounds.Inflate(owner.
DisplayedItems
[i].Margin.Size);
5513
Debug.WriteLineIf(ToolStrip.DropTargetDebug.TraceVerbose, "MATCH " + owner.
DisplayedItems
[i].Text + " Bounds: " + owner.
DisplayedItems
[i].Bounds.ToString());
5516
return owner.Items.IndexOf(owner.
DisplayedItems
[i]);
5520
if (owner.
DisplayedItems
.Count > 0) {
5521
for (int i = 0; i < owner.
DisplayedItems
.Count; i++) {
5522
if (owner.
DisplayedItems
[i].Alignment == ToolStripItemAlignment.Right) {
5524
return owner.Items.IndexOf(owner.
DisplayedItems
[i - 1]);
5526
return owner.Items.IndexOf(owner.
DisplayedItems
[i]);
5529
return owner.Items.IndexOf(owner.
DisplayedItems
[owner.
DisplayedItems
.Count - 1]);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
1814
CancelEventArgs openEventArgs = new CancelEventArgs(/*cancel=*/(
DisplayedItems
.Count == 0));
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (2)
764
this.
DisplayedItems
.Add(UpScrollButton);
765
this.
DisplayedItems
.Add(DownScrollButton);
winforms\Managed\System\WinForms\ToolStripItem.cs (2)
2460
int index = ParentInternal.
DisplayedItems
.IndexOf(this);
3959
ToolStripItemCollection items = this.parent.
DisplayedItems
;