145 references to Items
System.Web.Mobile (6)
UI\MobileControls\Design\StylesEditorDialog.cs (6)
367_lvAvailableStyles.Items.Add(item); 379_lvAvailableStyles.Items.Add(item); 399Debug.Assert(_lvAvailableStyles.Items.Count > 0); 401_lvAvailableStyles.Items[0].Selected = true; 402_currentNewStyleType = Type.GetType((String) _lvAvailableStyles.Items[0].SubItems[1].Text + "." + 403_lvAvailableStyles.Items[0].Text, true);
System.Windows.Forms (96)
winforms\Managed\System\WinForms\ListView.cs (95)
827return Items[displayIndex]; 1693if (Items.Count > 0) { 1694return Items[0]; 1701if (topIndex >= 0 && topIndex < Items.Count) 1702return Items[topIndex]; 1722if ((topItem == null) && (topIndex == Items.Count)) // HACK ALERT! VSWhidbey bug 154094/Windows OS Bugs bug 872012 1844ListViewItem lvItem = this.Items[topIndex]; 1869if (value && Items.Count > 0) 2368Items.Clear(); 2392this.Items.Count > 0) { 2415this.Items.Count > 0) { 2426for (int i = 0; i < this.Items.Count; i ++) { 2427if (this.Items[i].ImageIndexer.ActualIndex > -1) { 2559Items[(int)nmcd->nmcd.dwItemSpec], 2638if (nmcd->iSubItem < Items[itemIndex].SubItems.Count) 2644if (nmcd->iSubItem == 0 && Items[itemIndex].SubItems.Count > 1) 2654Items[itemIndex], 2655Items[itemIndex].SubItems[nmcd->iSubItem], 2681ListViewItem item = Items[(int)(nmcd->nmcd.dwItemSpec)]; 2972Items.Clear(); 3059if (index < 0 || index >= Items.Count) { 3071if (this.Items.Count == 0) { 3089if (startIndex < 0 || startIndex >= this.Items.Count) 3154if (this.Items.Count == 0) { 3166return this.Items[sviEvent.Index]; 3189return Items[index]; 3192for (int i = startIndex; i < this.Items.Count; i ++) { 3193ListViewItem lvi = this.Items[i]; 3343li = Items[displayIndex]; 3412if (index < 0 || index >= this.Items.Count) { 3440if (index < 0 || index >= this.Items.Count) 3500if (itemIndex < 0 || itemIndex >= this.Items.Count) { 3503int subItemCount = Items[itemIndex].SubItems.Count; 3558ListViewItem item = (iItem == -1) ? null : Items[iItem]; 3711for (int i = 0; i < this.Items.Count; i ++) { 3712ListViewItem item = this.Items[i]; 3764if (this.IsHandleCreated && this.Items.Count == 0 && this.View == View.SmallIcon && this.ComctlSupportsVisualStyles) 3884Debug.Assert(this.Items.Contains(li), "Make sure ListView.Items contains this item before adding the native LVITEM. Otherwise, custom-drawing may break."); 4036foreach (ListViewItem item in Items) { 4056ListViewItem item = Items[nmlv.iItem]; 4100if (this.Items.Count > 0) { 4363for (int i = 0; i < this.Items.Count; i ++) { 4364if (this.Items[i].Checked) { 4365this.UpdateSavedCheckedItems(this.Items[i], true /*addItem*/); 4381int count = Items.Count; 4383Items[i].UpdateStateFromListView(i, true); 4399ListViewItemCollection tempItems = Items; 4627int subItemCount = Items[i].SubItems.Count; 4629SetItemText(i, j, Items[i].SubItems[j].Text, ref lvItem); 4682if (startIndex < 0 || startIndex >= this.Items.Count) 4686if (endIndex < 0 || endIndex >= this.Items.Count) 4704Rectangle rectInvalid = this.Items[startIndex].Bounds; 4707rectInvalid = Rectangle.Union(rectInvalid, this.Items[index].Bounds); 4711rectInvalid = Rectangle.Union(rectInvalid, this.Items[startIndex - 1].Bounds); 4719if (endIndex < this.Items.Count - 1) 4721rectInvalid = Rectangle.Union(rectInvalid, this.Items[endIndex + 1].Bounds); 5153if (itemIndex < 0 || itemIndex >= this.Items.Count) { 5211else if (Items != null) { 5212s += ", Items.Count: " + Items.Count.ToString(CultureInfo.CurrentCulture); 5213if (Items.Count > 0 && !VirtualMode) { 5215string z = (Items[0] == null) ? "null" : Items[0].ToString(); 5371ListViewItem clickedItem = Items[displayIndex]; 5401ListViewItem clickedItem = Items[displayIndex]; 5848Items[nmlvdp.item.iItem].Text = nmlvdp.item.pszText; 5909ItemCheckedEventArgs e = new ItemCheckedEventArgs(Items[nmlv->iItem]); 5942if (this.Items.Count > 0) { 5943ListViewItemSelectionChangedEventArgs lvisce = new ListViewItemSelectionChangedEventArgs(this.Items[nmlv->iItem], 5950if (this.Items.Count == 0 || this.Items[this.Items.Count - 1] != null) 6142ListViewItem lvi = Items[infoTip.item]; 6347if (FocusedItem == null && Items.Count > 0) 6349Items[0].Focused = true; 6440foreach(ListViewItem item in owner.Items) { 6453for(int i=0; i < owner.Items.Count && index < indices.Length; ++i) { 6454if (owner.Items[i].Checked) { 6475int cnt = owner.Items.Count; 6478ListViewItem item = owner.Items[i]; 6543if (owner.Items[checkedIndex].Checked) { 6681for(int i=0; i < owner.Items.Count && index < items.Length; ++i) { 6682if (owner.Items[i].Checked) { 6683items[index++] = owner.Items[i]; 6701return owner.Items[itemIndex]; 7111return owner.Items[selectedIndex].Selected; 7217if (itemIndex < 0 || itemIndex >= this.owner.Items.Count) 7221this.owner.Items[itemIndex].Selected = true; 7276if (itemIndex < 0 || itemIndex >= this.owner.Items.Count) 7280this.owner.Items[itemIndex].Selected = false; 7320lvitems[i] = owner.Items[fidx]; 7394return owner.Items[fidx]; 9002int count = owner.Items.Count; 9005ListViewItem item = owner.Items[i]; 9042int count = owner.Items.Count; 9045ListViewItem item = owner.Items[i];
winforms\Managed\System\WinForms\ListViewItem.cs (1)
1239listView.Items.Remove(this);
System.Workflow.Activities (36)
Rules\Design\Dialogs\BasicBrowserDialog.cs (7)
150ListViewItem listViewItem = this.rulesListView.Items.Add(new ListViewItem()); 228this.rulesListView.Items.RemoveAt(selectionIndex); 229if (this.rulesListView.Items.Count > 0) 231int newSelectionIndex = Math.Min(selectionIndex, this.rulesListView.Items.Count - 1); 232this.rulesListView.Items[newSelectionIndex].Selected = true; 233selectedRuleObject = this.rulesListView.Items[newSelectionIndex].Tag; 325ListViewItem listViewItem = this.rulesListView.Items.Add(new ListViewItem());
Rules\Design\Dialogs\IntellisenseTextBox.cs (21)
192this.listBoxAutoComplete.Items[this.listBoxAutoComplete.SelectedIndices[0] - 1].Selected = true; 193this.listBoxAutoComplete.Items[this.listBoxAutoComplete.SelectedIndices[0]].Focused = true; 205if (this.listBoxAutoComplete.Items.Count > 0) 207this.listBoxAutoComplete.Items[0].Selected = true; 208this.listBoxAutoComplete.Items[0].Focused = true; 211else if (this.listBoxAutoComplete.SelectedIndices[0] < this.listBoxAutoComplete.Items.Count - 1) 213this.listBoxAutoComplete.Items[this.listBoxAutoComplete.SelectedIndices[0] + 1].Selected = true; 214this.listBoxAutoComplete.Items[this.listBoxAutoComplete.SelectedIndices[0]].Focused = true; 279foreach (ListViewItem listViewItem in this.listBoxAutoComplete.Items) 338this.listBoxAutoComplete.Items.Clear(); 402this.listBoxAutoComplete.Items.Add(listViewItem); 407if (this.listBoxAutoComplete.Items.Count > 0) 410this.listBoxAutoComplete.Size = new Size(this.listBoxAutoComplete.Items[0].Bounds.Width + 30, 72); 422if (this.listBoxAutoComplete.Items.Count > 0) 473if (string.IsNullOrEmpty(currentValue.Trim()) && this.listBoxAutoComplete.Items.Count > 0) 476this.listBoxAutoComplete.Items[0].Selected = true; 477this.listBoxAutoComplete.Items[0].Focused = true; 481for (int i = 0; i < this.listBoxAutoComplete.Items.Count; i++) 483if (this.listBoxAutoComplete.Items[i].Text.StartsWith(currentValue, StringComparison.OrdinalIgnoreCase)) 486this.listBoxAutoComplete.Items[i].Selected = true; 487this.listBoxAutoComplete.Items[i].Focused = true;
Rules\Design\Dialogs\RuleSetDialog.cs (8)
115if (this.rulesListView.Items.Count > 0) 116this.rulesListView.Items[0].Selected = true; 305int index = rulesListView.Items.IndexOf(listViewItem); 326this.rulesListView.Items.RemoveAt(selectionIndex); 327if (this.rulesListView.Items.Count > 0) 329int newSelectionIndex = Math.Min(selectionIndex, this.rulesListView.Items.Count - 1); 330this.rulesListView.Items[newSelectionIndex].Selected = true; 426this.rulesListView.Items.Add(listViewItem);
System.Workflow.ComponentModel (5)
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (5)
670foreach (ListViewItem lvItem in this.artifactListView.Items) 836this.artifactListView.Items.Clear(); 887this.artifactListView.Items.Add(listItem); 894if (this.artifactListView.Items.Count > 0) 895this.artifactListView.Items[0].Selected = true;
WsatUI (2)
MMCUI\AcceptedCertificatesForm.cs (2)
75this.listAllowedCertificates.Items.Add(listViewItem); 81this.listAllowedCertificates.Items[i].Checked = true;