7 writes to _columnHeaders
System.Windows.Forms (7)
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (4)
321_owner._columnHeaders = null; 341_owner._columnHeaders = null; 540_owner._columnHeaders = null; 555_owner._columnHeaders = newHeaders;
System\Windows\Forms\Controls\ListView\ListView.cs (3)
3068_columnHeaders = null; 3841_columnHeaders = newHeaders; 3845_columnHeaders = new ColumnHeader[1];
69 references to _columnHeaders
System.Windows.Forms (69)
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (17)
73return _owner._columnHeaders is null ? 0 : _owner._columnHeaders.Length; 309if (_owner._columnHeaders is not null) 314for (int colIdx = _owner._columnHeaders.Length - 1; colIdx >= 0; colIdx--) 316_ = _owner._columnHeaders[colIdx].Width; // Update width before detaching from ListView 317_owner._columnHeaders[colIdx].OwnerListview = null; 318_owner._columnHeaders[colIdx].ReleaseUiaProvider(); 329for (int colIdx = _owner._columnHeaders.Length - 1; colIdx >= 0; colIdx--) 331_ = _owner._columnHeaders[colIdx].Width; // Update width before detaching from ListView 337_owner._columnHeaders[colIdx].OwnerListview = null; 338_owner._columnHeaders[colIdx].ReleaseUiaProvider(); 373Array.Copy(_owner._columnHeaders!, 0, dest, index, Count); 536int columnCount = _owner._columnHeaders.Length; 547Array.Copy(_owner._columnHeaders, 0, newHeaders, 0, index); 552Array.Copy(_owner._columnHeaders, index + 1, newHeaders, index, columnCount - index); 586if (_owner._columnHeaders is not null) 588return _owner._columnHeaders.GetEnumerator();
System\Windows\Forms\Controls\ListView\ListView.cs (52)
2510ColumnHeader? col = (_columnHeaders is not null && _columnHeaders.Length > 0) ? _columnHeaders[0] : null; 2720if (_columnHeaders is not null) 2722subItemBounds.Width = _columnHeaders[0].Width; 2735_columnHeaders![nmcd->iSubItem], 3060if (_columnHeaders is not null) 3062for (int colIdx = _columnHeaders.Length - 1; colIdx >= 0; colIdx--) 3064_columnHeaders[colIdx].OwnerListview = null; 3065_columnHeaders[colIdx].Dispose(); 3452if (_columnHeaders is null) 3457for (int i = 0; i < _columnHeaders.Length; i++) 3459if (_columnHeaders[i] == ch) 3797if (_columnHeaders is null) 3802for (int i = 0; i < _columnHeaders.Length; i++) 3804_columnHeaders[i]._correspondingListViewSubItemIndex = i; 3832int columnCount = _columnHeaders is null ? 0 : _columnHeaders.Length; 3838Array.Copy(_columnHeaders!, 0, newHeaders, 0, columnCount); 3850Array.Copy(_columnHeaders, idx, _columnHeaders, idx + 1, columnCount - idx); 3853_columnHeaders[idx] = ch; 4129cColumns = (uint)(_columnHeaders is not null ? Math.Min(MAXTILECOLUMNS, _columnHeaders.Length) : 0), 4602int columnCount = _columnHeaders is null ? 0 : _columnHeaders.Length; 4607foreach (ColumnHeader column in _columnHeaders!) 5242[MemberNotNull(nameof(_columnHeaders))] 5246ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _columnHeaders?.Length ?? 0); 5248return _columnHeaders![index]; 5603if (_columnHeaders is not null) 5605for (int i = 0; i < _columnHeaders.Length; i++) 5805cLines = _columnHeaders is not null ? _columnHeaders.Length : 0, 6002_columnHeaders![(int)nmcd->dwItemSpec], 6047if (_columnHeaders is not null && _columnHeaders.Length > nmheader->iItem) 6049_columnHeaderClicked = _columnHeaders[nmheader->iItem]; 6063if (_columnHeaders is not null && nmheader->iItem < _columnHeaders.Length && 6098if (_columnHeaders is not null && nmheader->iItem < _columnHeaders.Length) 6100int w = _columnHeaders[nmheader->iItem].Width; 6103(_columnHeaderClicked == _columnHeaders[nmheader->iItem] && 6156if (_columnHeaders is not null && _columnHeaders.Length > nmheader->iItem) 6158_columnHeaders[nmheader->iItem].Width = _newWidthForColumnWidthChangingCancelled; 6278if (_columnHeaders is not null && _columnHeaders.Length > nmheader->iItem) 6280_columnHeaders[nmheader->iItem].Width = _newWidthForColumnWidthChangingCancelled; 6296Debug.Assert(_columnHeaders!.Length > 0, "there should be a column that we need to compensate for"); 6299ColumnHeader col = _columnHeaders![0];