1 override of Items
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ToolStripOverflow.cs (1)
58
public override ToolStripItemCollection
Items
{
203 references to Items
System.Windows.Forms (199)
winforms\Managed\System\WinForms\BindingNavigator.cs (1)
237
Items
.AddRange(new ToolStripItem[] {
winforms\Managed\System\WinForms\ContextMenuStrip.cs (4)
74
for (int i = 0; i <
Items
.Count; i++) {
75
ToolStripItem item =
Items
[i];
78
contextMenuStrip.
Items
.Add(new ToolStripSeparator());
82
contextMenuStrip.
Items
.Add(menuItem.Clone());
winforms\Managed\System\WinForms\Form.cs (3)
6705
Debug.WriteLineIf(ToolStrip.MDIMergeDebug.TraceVerbose, "UpdateMdiControlStrip: built up an MDI control strip for " + ActiveMdiChildInternal.Text + " with " + MdiControlStrip.
Items
.Count.ToString(CultureInfo.InvariantCulture) + " items.");
6706
Debug.WriteLineIf(ToolStrip.MDIMergeDebug.TraceVerbose, "UpdateMdiControlStrip: merging MDI control strip into source menustrip - items before: " + sourceMenuStrip.
Items
.Count.ToString(CultureInfo.InvariantCulture));
6708
Debug.WriteLineIf(ToolStrip.MDIMergeDebug.TraceVerbose, "UpdateMdiControlStrip: merging MDI control strip into source menustrip - items after: " + sourceMenuStrip.
Items
.Count.ToString(CultureInfo.InvariantCulture));
winforms\Managed\System\WinForms\MDIControlStrip.cs (4)
55
this.
Items
.AddRange(new ToolStripItem[] { minimize, restore,close, system });
57
foreach (ToolStripItem item in this.
Items
) {
149
Debug.Assert(
Items
.Count <= 4, "Too many items in the MDIControlStrip. How did we get into this situation?");
176
system.DropDown.
Items
.Clear();
winforms\Managed\System\WinForms\MdiWindowListStrip.cs (1)
44
this.
Items
.Add(mergeItem);
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (3)
1318
this.toolStrip1.
Items
.AddRange(new System.Windows.Forms.ToolStripItem[] {
1558
this.toolStrip1.
Items
.Add(pageCounterItem);
1559
this.toolStrip1.
Items
.Add(this.pageToolStripLabel);
winforms\Managed\System\WinForms\PropertyGrid.cs (12)
3759
if (toolStrip.
Items
.Count > 0) {
4397
buttonList = new ArrayList(toolStrip.
Items
);
4513
toolStrip.
Items
.Clear();
4515
toolStrip.
Items
.Add(buttonList[j] as ToolStripItem);
4916
m.Result = (IntPtr)toolStrip.
Items
.Count;
4923
if( index >= 0 && index < toolStrip.
Items
.Count ) {
4924
ToolStripButton button = toolStrip.
Items
[index] as ToolStripButton;
4938
if( index >= 0 && index < toolStrip.
Items
.Count ) {
4939
ToolStripButton button = toolStrip.
Items
[index] as ToolStripButton;
4968
if( index >= 0 && index < toolStrip.
Items
.Count ) {
4971
text = toolStrip.
Items
[index].Text;
4974
text = toolStrip.
Items
[index].ToolTipText;
winforms\Managed\System\WinForms\StatusStrip.cs (3)
384
for (int i = 0; i <
Items
.Count; i++) {
385
ToolStripItem item =
Items
[i];
657
if (statusStrip == null || statusStrip.
Items
.Count == 0) {
winforms\Managed\System\WinForms\ToolStrip.cs (78)
230
Items
.AddRange(items);
1011
foreach(ToolStripItem item in
Items
) {
1066
LayoutTransaction.DoLayoutIf((
Items
.Count > 0), this, this, PropertyNames.ImageScalingSize);
1067
foreach (ToolStripItem item in this.
Items
) {
1108
foreach (ToolStripItem item in
Items
) {
1797
foreach (ToolStripItem item in this.
Items
) {
1892
for (int i = 0; i <
Items
.Count; i++) {
1893
Items
[i].OnOwnerTextDirectionChanged();
2108
if (!
Items
.IsReadOnly) {
2110
for (int i =
Items
.Count - 1; i >= 0; i--) {
2111
Items
[i].Dispose();
2113
Items
.Clear();
2487
for (int j = 0; j < toolStrip.
Items
.Count; j++) {
2488
ToolStripItem item = toolStrip.
Items
[j];
2504
if (toolStrip.
Items
.Count == 0 || (!foundItemParticipatingInLayout)) {
2542
for (int j = 0; j < toolStrip.
Items
.Count; j++) {
2543
ToolStripItem item = toolStrip.
Items
[j];
2560
if (toolStrip.
Items
.Count == 0 || !foundItemParticipatingInLayout) {
2708
for (int i = 0; i < this.
Items
.Count; i++) {
2709
renderer.InitializeItem(this.
Items
[i]);
2882
foreach (ToolStripItem item in this.
Items
) {
3291
for (int i = 0; i < this.
Items
.Count; i++) {
3292
if (
Items
[i] != null &&
Items
[i].ParentInternal == this) {
3293
Items
[i].OnParentEnabledChanged(e);
3313
for (int i = 0; i < this.
Items
.Count; i++) {
3314
Items
[i].OnOwnerFontChanged(e);
3430
for (int j = 0; j <
Items
.Count; j++) {
3431
Items
[j].OnLayout(e);
3784
for (int i = 0; i <
Items
.Count; i++) {
3785
Items
[i].OnParentRightToLeftChanged(e);
4155
foreach (ToolStripItem item in this.
Items
) {
4377
for (; j >= 0 && j <
Items
.Count; j = (pass == 0) ? j+1 : j-1){
4379
ToolStripItem item =
Items
[j];
4437
for (int j = 0; j <
Items
.Count; j++) {
4438
ToolStripItem item =
Items
[j];
4463
Debug.WriteLineIf(LayoutDebugSwitch.TraceVerbose, item.ToString() +
Items
[j].Bounds);
4585
sb.Append(", Items: ").Append(this.
Items
.Count);
4777
get { return
Items
; }
4853
if ((owner == null) || (owner.
Items
== null))
4863
if (index < owner.
Items
.Count) {
4868
for (int i = 0; i < owner.
Items
.Count; ++i)
4870
if (owner.
Items
[i].Available && owner.
Items
[i].Alignment == ToolStripItemAlignment.Left) {
4872
item = owner.
Items
[i];
4881
for (int i = 0; i < owner.
Items
.Count; ++i) {
4882
if (owner.
Items
[i].Available && owner.
Items
[i].Alignment == ToolStripItemAlignment.Right) {
4884
item = owner.
Items
[i];
4903
if (owner.CanOverflow && owner.OverflowButton.Visible && index == owner.
Items
.Count) {
4915
if ((owner == null) || (owner.
Items
== null))
4919
for (int i = 0; i < owner.
Items
.Count; i++) {
4920
if (owner.
Items
[i].Available) {
4955
var item = owner.
Items
[index];
4986
if (owner == null || owner.
Items
== null) {
5030
if ((owner == null) || (owner.
Items
== null)) {
5043
return owner.
Items
.Count + index;
5047
for (int i = 0; i < owner.
Items
.Count; ++i) {
5048
if (owner.
Items
[i].Available && owner.
Items
[i].Alignment == ToolStripItemAlignment.Left) {
5049
if (child.Owner == owner.
Items
[i]) {
5057
for (int i = 0; i < owner.
Items
.Count; ++i) {
5058
if (owner.
Items
[i].Available && owner.
Items
[i].Alignment == ToolStripItemAlignment.Right) {
5059
if (child.Owner == owner.
Items
[i]) {
5193
int i = this.
Items
.Count;
5195
ToolStripItem item = this.
Items
[i];
5413
ToolStripItem item = owner.
Items
[toolStripItemIndex];
5453
if (owner.
Items
.IndexOf(droppedItem) < insertIndex) {
5457
owner.
Items
.MoveItem(Math.Max(0,insertIndex), droppedItem);
5461
else if (toolStripItemIndex == -1 && owner.
Items
.Count == 0) {
5462
owner.
Items
.Add(droppedItem);
5473
ToolStripItem item = owner.
Items
[i];
5498
else if (owner.
Items
.Count == 0) {
5516
return owner.
Items
.IndexOf(owner.DisplayedItems[i]);
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\ToolStripDropDownItem.cs (5)
243
return DropDown.
Items
;
747
foreach (ToolStripItem childItem in item.DropDown.
Items
) {
948
int index = dropDown.
Items
.IndexOf(owner);
957
if (index >= 0 && index < dropDown.
Items
.Count) {
958
var item = dropDown.
Items
[index];
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (36)
324
managedDropDown.
Items
.Add(itemToAdd);
341
for (int i = 0; i <
Items
.Count; i++) {
342
ToolStripItem item =
Items
[i];
530
int index = this.
Items
.IndexOf(nextItem);
533
if ( (this.
Items
[index].Visible && displayRect.Contains(displayRect.X, this.
Items
[index].Bounds.Top - delta))
534
|| !this.
Items
[index].Visible) {
543
if (displayRect.Contains(displayRect.X, this.
Items
[index].Bounds.Bottom - delta)) {
545
delta += (this.
Items
[index].Bounds.Bottom - delta) - displayRect.Top;
628
if (this.
Items
.Count > 0) {
629
int delta = this.
Items
[0].Bounds.Top - this.DisplayRectangle.Top;
648
if (!RequiresScrollButtons || this.
Items
.Count == 0) {
659
int alreadyScrolled = displayRectangle.Top - this.
Items
[0].Bounds.Top;
665
for (int i = 0; i < this.
Items
.Count && deltaToScroll < requiredScrollAmount; ++i) {
666
if (this.
Items
[i].Available) {
667
Rectangle adjustedLastItemBounds = this.
Items
[this.
Items
.Count - 1].Bounds;
676
if (i < this.
Items
.Count - 1) {
677
deltaToScroll += this.
Items
[i + 1].Bounds.Top - this.
Items
[i].Bounds.Top;
680
deltaToScroll += this.
Items
[i].Bounds.Height;
686
for (int i = this.
Items
.Count - 1; i >= 0 && deltaToScroll > requiredScrollAmount; --i) {
687
if (this.
Items
[i].Available) {
688
Rectangle adjustedLastItemBounds = this.
Items
[0].Bounds;
698
deltaToScroll -= this.
Items
[i].Bounds.Top - this.
Items
[i - 1].Bounds.Top;
701
deltaToScroll -= this.
Items
[i].Bounds.Height;
707
this.scrollAmount = this.DisplayRectangle.Top - this.
Items
[0].Bounds.Top;
723
if (this.indexOfFirstDisplayedItem == -1 || this.indexOfFirstDisplayedItem >= this.
Items
.Count) {
736
ToolStripItem itemTop = this.
Items
[this.indexOfFirstDisplayedItem - 1];
737
ToolStripItem itemBottom = this.
Items
[this.indexOfFirstDisplayedItem];
743
if (this.indexOfFirstDisplayedItem == this.
Items
.Count - 1) {
748
ToolStripItem itemTop = this.
Items
[this.indexOfFirstDisplayedItem];
749
ToolStripItem itemBottom = this.
Items
[this.indexOfFirstDisplayedItem + 1];
801
for (int i = 0; i < this.
Items
.Count; ++i) {
802
ToolStripItem item = this.
Items
[i];
winforms\Managed\System\WinForms\ToolStripDropTargetManager.cs (2)
67
for (int i = 0; i < owner.
Items
.Count; i++) {
68
if (owner.
Items
[i].AllowDrop) {
winforms\Managed\System\WinForms\ToolStripItem.cs (5)
1739
owner.
Items
.Remove(this);
1742
value.
Items
.Add(this);
2494
if (this.ParentInternal.
Items
.Contains(this) && this.ParentInternal.AllowItemReorder) {
2535
Debug.Assert(this.Owner.
Items
.Contains(this), "How can there be a owner and not be in the collection?");
2536
this.Owner.
Items
.Remove(this);
winforms\Managed\System\WinForms\ToolStripItemCollection.cs (5)
505
int indexOfItem = value.ParentInternal.
Items
.IndexOf(value);
507
value.ParentInternal.
Items
.RemoveAt(indexOfItem);
523
int indexOfItem = value.ParentInternal.
Items
.IndexOf(value);
526
value.ParentInternal.
Items
.RemoveAt(indexOfItem);
543
item.Owner.
Items
.Remove(item);
winforms\Managed\System\WinForms\ToolStripManager.cs (9)
210
foreach (ToolStripItem item in toolStrip.
Items
) {
1904
int originalCount = sourceToolStrip.
Items
.Count;
1914
ToolStripItem item = sourceToolStrip.
Items
[itemToLookAt];
1916
MergeRecursive(item, targetToolStrip.
Items
, mergeHistory.MergeHistoryItemsStack);
1918
int numberOfItemsMerged = lastCount - sourceToolStrip.
Items
.Count;
1920
lastCount = sourceToolStrip.
Items
.Count;
2000
maction.PreviousIndexCollection = source.Owner.
Items
;
2016
maction.PreviousIndexCollection = source.Owner.
Items
;
2029
maction.PreviousIndexCollection = source.Owner.
Items
;
winforms\Managed\System\WinForms\ToolStripSettings.cs (9)
157
StringBuilder itemNames = new StringBuilder(toolStrip.
Items
.Count);
159
for (int i = 0; i < toolStrip.
Items
.Count; i++) {
160
itemNames.Append((toolStrip.
Items
[i].Name == null) ? "null" : toolStrip.
Items
[i].Name);
161
if (i != toolStrip.
Items
.Count - 1) {
253
for (int i = 0; ((i < toolStrip.
Items
.Count) && (i < keys.Length)); i++) {
258
toolStrip.
Items
.Insert(i, itemLocationHash[key].
Items
[key]);
272
foreach (ToolStripItem item in toolStrip.
Items
) {
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (3)
858
return DropDownItemsCount > 0 ? ownerItem.DropDown.
Items
[0].AccessibilityObject : null;
860
return DropDownItemsCount > 0 ? ownerItem.DropDown.
Items
[ownerItem.DropDown.
Items
.Count - 1].AccessibilityObject : null;
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (16)
103
for (ForwardsWalkingIndex = 0; ForwardsWalkingIndex < toolStrip.
Items
.Count; ForwardsWalkingIndex++) {
104
ToolStripItem item = toolStrip.
Items
[ForwardsWalkingIndex];
153
for (ForwardsWalkingIndex = 0; ForwardsWalkingIndex < ToolStrip.
Items
.Count; ForwardsWalkingIndex++) {
154
ToolStripItem item = toolStrip.
Items
[ForwardsWalkingIndex];
274
for (int j = -1; j < toolStrip.
Items
.Count; j++) {
291
item = toolStrip.
Items
[j];
410
for (int j = -1; j < ToolStrip.
Items
.Count; j++) {
428
item = toolStrip.
Items
[j];
551
for (int i = 0; i < toolStrip.
Items
.Count; i++) {
552
ToolStripItem item = toolStrip.
Items
[i];
570
for (int i = 0; i < toolStrip.
Items
.Count; i++) {
571
if (toolStrip.
Items
[i].Placement == ToolStripItemPlacement.Overflow) {
572
toolStrip.
Items
[i].ParentInternal = null;
575
toolStrip.
Items
[i].SetPlacement(ToolStripItemPlacement.None);
591
BackwardsWalkingIndex = (backIndex == -1) ? ToolStrip.
Items
.Count - 1 : backIndex -1;
593
ToolStripItem item = ToolStrip.
Items
[BackwardsWalkingIndex];
System.Workflow.Activities (2)
Rules\Design\Dialogs\BasicBrowserDialog.Designer.cs (1)
111
this.rulesToolStrip.
Items
.AddRange(new System.Windows.Forms.ToolStripItem[] {
Rules\Design\Dialogs\RuleSetDialog.Designer.cs (1)
154
this.rulesToolStrip.
Items
.AddRange(new System.Windows.Forms.ToolStripItem[] {
System.WorkflowServices (2)
System\Workflow\Activities\Design\OperationPickerDialog.designer.cs (1)
55
this.operationsToolStrip.
Items
.AddRange(new System.Windows.Forms.ToolStripItem[] {
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.designer.cs (1)
120
this.operationsToolStrip.
Items
.AddRange(new System.Windows.Forms.ToolStripItem[] {