3 writes to listView
System.Windows.Forms (3)
winforms\Managed\System\WinForms\ListViewItem.cs (3)
1089
listView
= parent;
1230
listView
= null;
1348
this.
listView
= listView;
114 references to listView
System.Windows.Forms (114)
winforms\Managed\System\WinForms\ListView.cs (3)
3272
Debug.Assert(item.
listView
== this, "Can't GetDisplayIndex if the list item doesn't belong to us");
3776
if (items[i].
listView
!= null) {
3804
if (checkHosting && item.
listView
!= null) {
winforms\Managed\System\WinForms\ListViewItem.cs (111)
344
if (
listView
!= null) {
345
return
listView
.BackColor;
366
if (
listView
!= null) {
367
return
listView
.GetItemRect(Index);
390
if (
listView
!= null &&
listView
.IsHandleCreated) {
395
if ((this.
listView
!= null) && !this.
listView
.UseCompatibleStateImageBehavior) {
396
if (!
listView
.CheckBoxes) {
397
listView
.UpdateSavedCheckedItems(this, value);
419
if (
listView
!= null &&
listView
.IsHandleCreated) {
420
return(
listView
.GetItemState(Index, NativeMethods.LVIS_FOCUSED) != 0);
426
if (
listView
!= null &&
listView
.IsHandleCreated) {
427
listView
.SetItemState(Index, value ? NativeMethods.LVIS_FOCUSED : 0, NativeMethods.LVIS_FOCUSED);
444
if (
listView
!= null) {
445
return
listView
.Font;
469
if (
listView
!= null) {
470
return
listView
.ForeColor;
542
if (
listView
!= null &&
listView
.IsHandleCreated) {
543
listView
.SetItemImage(Index, ImageIndexer.ActualIndex);
577
if (
listView
!= null &&
listView
.IsHandleCreated) {
578
listView
.SetItemImage(Index, ImageIndexer.ActualIndex);
587
if (
listView
!= null) {
588
switch(
listView
.View) {
591
return
listView
.LargeImageList;
595
return
listView
.SmallImageList;
619
if (
listView
!= null &&
listView
.IsHandleCreated) {
620
listView
.SetItemIndentCount(Index, indentCount);
633
if (
listView
!= null) {
636
if (!
listView
.VirtualMode) {
637
lastIndex =
listView
.GetDisplayIndex(this, lastIndex);
655
return
listView
;
691
if (
listView
!= null &&
listView
.IsHandleCreated) {
692
position =
listView
.GetItemPosition(Index);
700
if (
listView
!= null &&
listView
.IsHandleCreated) {
701
if (!
listView
.VirtualMode) {
702
listView
.SetItemPosition(Index, position.X, position.Y);
745
if (
listView
!= null &&
listView
.IsHandleCreated) {
746
return(
listView
.GetItemState(Index, NativeMethods.LVIS_SELECTED) != 0);
752
if (
listView
!= null &&
listView
.IsHandleCreated) {
753
listView
.SetItemState(Index, value ? NativeMethods.LVIS_SELECTED: 0, NativeMethods.LVIS_SELECTED);
756
listView
.SetSelectionMark(Index);
760
if (this.
listView
!= null && this.
listView
.IsHandleCreated) {
763
listView
.CacheSelectedStateForItem(this, value);
785
if (
listView
!= null &&
listView
.IsHandleCreated) {
786
int state =
listView
.GetItemState(Index, NativeMethods.LVIS_STATEIMAGEMASK);
795
if (
listView
!= null &&
listView
.IsHandleCreated) {
798
listView
.SetItemState(Index, state, NativeMethods.LVIS_STATEIMAGEMASK);
924
if (this.
listView
!= null && this.
listView
.IsHandleCreated) {
925
this.
listView
.ListViewItemToolTipChanged(this);
1022
if (
listView
!= null &&
listView
.IsHandleCreated) {
1023
listView
.EnsureVisible(Index);
1052
if (
listView
!= null &&
listView
.IsHandleCreated) {
1053
return
listView
.GetItemRect(Index, portion);
1060
if (
listView
!= null &&
listView
.IsHandleCreated &&
listView
.View == View.Details) {
1064
listView
.GetSubItemAt(x,y, out iItem, out iSubItem);
1085
Debug.Assert(this.
listView
== null || !this.
listView
.VirtualMode, "ListViewItem::Host can't be used w/ a virtual item");
1102
Debug.Assert(this.
listView
!= null, "This method is used only when items are parented in a list view");
1103
Debug.Assert(!this.
listView
.VirtualMode, "we need to update the group only when the user specifies the list view items in localizable forms");
1108
ListViewGroup group = this.
listView
.Groups[this.groupName];
1127
Debug.Assert(
listView
.IsHandleCreated, "Should only invoke UpdateStateToListView when handle is created.");
1156
if (
listView
.GroupsEnabled) {
1158
lvItem.iGroupId =
listView
.GetNativeGroupId(this);
1160
Debug.Assert(!updateOwner ||
listView
.SendMessage(NativeMethods.LVM_ISGROUPVIEWENABLED, 0, 0) != IntPtr.Zero, "Groups not enabled");
1161
Debug.Assert(!updateOwner ||
listView
.SendMessage(NativeMethods.LVM_HASGROUP, lvItem.iGroupId, 0) != IntPtr.Zero, "Doesn't contain group id: " + lvItem.iGroupId.ToString(CultureInfo.InvariantCulture));
1165
UnsafeNativeMethods.SendMessage(new HandleRef(
listView
,
listView
.Handle), NativeMethods.LVM_SETITEM, 0, ref lvItem);
1170
if (
listView
!= null &&
listView
.IsHandleCreated && displayIndex != -1) {
1193
UnsafeNativeMethods.SendMessage(new HandleRef(
listView
,
listView
.Handle), NativeMethods.LVM_GETITEM, 0, ref lvItem);
1224
if (this.
listView
!= null && (this.
listView
.Site == null || !this.
listView
.Site.DesignMode) && this.group != null) {
1238
if (
listView
!= null) {
1239
listView
.Items.Remove(this);
1371
if (
listView
!= null &&
listView
.IsHandleCreated) {
1372
listView
.Invalidate();
1381
if (
listView
!= null &&
listView
.IsHandleCreated) {
1387
listView
.SetItemText(itemIndex, index, subItems[index].Text);
1391
listView
.SetItemText(itemIndex, i, subItems[i].Text);
1396
listView
.SetItemText(itemIndex, i, string.Empty);
1474
if (owner != null && owner.
listView
!= null) {
1475
return owner.
listView
.BackColor;
1497
if(owner != null && owner.
listView
!= null && owner.
listView
.IsHandleCreated) {
1498
return owner.
listView
.GetSubItemRect(owner.Index, owner.SubItems.IndexOf(this));
1542
if (owner != null && owner.
listView
!= null) {
1543
return owner.
listView
.Font;
1572
if (owner != null && owner.
listView
!= null) {
1573
return owner.
listView
.ForeColor;