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