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