60 references to Items
System.Windows.Forms (42)
winforms\Managed\System\WinForms\CheckedListBox.cs (1)
276return(CheckedListBox.ObjectCollection)base.Items;
winforms\Managed\System\WinForms\ListBox.cs (30)
877return Items.IndexOfIdentifier(SelectedItems.GetObjectAt(0)); 1106int cnt = Items.Count; 1108if (String.Compare(value, GetItemText(Items[index]), true, CultureInfo.CurrentCulture) == 0) { 1211Items.AddRangeInternal(value); 1335if (index < 0 || index >= Items.Count) 1354string[] strings = new string[this.Items.Count]; 1356for (int i = 0; i < Items.Count; i ++) { 1357strings[i] = GetItemText(Items[i]); 1433return FindStringInternal(s, Items, startIndex, false); 1468return FindStringInternal(s, Items, startIndex, true); 1689int cnt = Items.Count; 1925Items.ClearInternal(); 1951int cnt = Items.Count; 2007Items.AddRangeInternal(newItems); 2037Items.SetItemInternal(index, Items[index]); 2085Items.ClearInternal(); 2086Items.AddRangeInternal(value); 2120Items.SetItemInternal(index, value); 2185s += ", Items.Count: " + Items.Count.ToString(CultureInfo.CurrentCulture); 2186if (Items.Count > 0) { 2187string z = GetItemText(Items[0]); 3200int cnt = owner.Items.Count; 3989return ((ObjectCollection)owner.Items).InnerArray; 4020ObjectCollection items = owner.Items; 4035ObjectCollection items = owner.Items; 4209return ((ObjectCollection)owner.Items).InnerArray; 4341bool selected = ((ObjectCollection)owner.Items).InnerArray.GetState(index, SelectedObjectMask); 4372ObjectCollection items = owner.Items; 4388ObjectCollection items = owner.Items;
winforms\Managed\System\WinForms\MDIWindowDialog.cs (1)
67int n = itemList.Items.Add(new ListItem(all[i]));
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (10)
2525if (DropDownListBox.Items.Count == 0) { 2551string text = (string)DropDownListBox.Items[die.Index]; 3862DropDownListBox.Items.Clear(); 3885DropDownListBox.Items.Add(s); 3910bool resizable = DropDownListBox.Items.Count > (DropDownListBox.Height / DropDownListBox.ItemHeight); 5987if (lb.Items.Count == 0) { 6281return _owningGridViewListBox.Items.IndexOf(_owningItem); 6488if (index < 0 || index >= _owningGridViewListBox.Items.Count) { 6492var item = _owningGridViewListBox.Items[index]; 6498return _owningGridViewListBox.Items.Count;
System.Workflow.Activities (2)
Designers\SetStateDesigner.cs (2)
299_selectedObject = dropDownList.Items[dropDownList.SelectedIndex]; 325dropDownList.Items.Add(state.QualifiedName);
System.WorkflowServices (16)
System\Workflow\Activities\Design\OperationPickerDialog.cs (7)
133if (this.operationsListBox.Items.Count == 0) 135this.operationsListBox.Items.Add(new HelpListItem()); 157operationsListBox.Items.Add(serviceContractListItem); 313if (operationsListBox.Items.Count > 0) 364if (this.operationsListBox.Items.Count > 0 && this.operationsListBox.Items[0] is HelpListItem) 366this.operationsListBox.Items.Clear();
System\Workflow\Activities\Design\RichListBox.cs (5)
111if (Items.Count < 1) 115object itemToDraw = Items[e.Index]; 152if (Items.Count == 0) 156object listItem = this.Items[e.Index]; 181object selectedItem = Items[this.SelectedIndex];
System\Workflow\Activities\Design\ServiceContractListItem.cs (4)
87int positionToAddAt = this.container.Items.IndexOf(this) + 1; 90positionToAddAt = this.container.Items.IndexOf(lastItemAdded) + 1; 93this.container.Items.Insert(positionToAddAt, operation); 124this.container.SetSelected(container.Items.IndexOf(operationListItem), true);