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)
3064_columnHeaders = null; 3837_columnHeaders = newHeaders; 3841_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--) 316int w = _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--) 331int w = _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)
2506ColumnHeader? col = (_columnHeaders is not null && _columnHeaders.Length > 0) ? _columnHeaders[0] : null; 2716if (_columnHeaders is not null) 2718subItemBounds.Width = _columnHeaders[0].Width; 2731_columnHeaders![nmcd->iSubItem], 3056if (_columnHeaders is not null) 3058for (int colIdx = _columnHeaders.Length - 1; colIdx >= 0; colIdx--) 3060_columnHeaders[colIdx].OwnerListview = null; 3061_columnHeaders[colIdx].Dispose(); 3448if (_columnHeaders is null) 3453for (int i = 0; i < _columnHeaders.Length; i++) 3455if (_columnHeaders[i] == ch) 3793if (_columnHeaders is null) 3798for (int i = 0; i < _columnHeaders.Length; i++) 3800_columnHeaders[i]._correspondingListViewSubItemIndex = i; 3828int columnCount = _columnHeaders is null ? 0 : _columnHeaders.Length; 3834Array.Copy(_columnHeaders!, 0, newHeaders, 0, columnCount); 3846Array.Copy(_columnHeaders, idx, _columnHeaders, idx + 1, columnCount - idx); 3849_columnHeaders[idx] = ch; 4125cColumns = (uint)(_columnHeaders is not null ? Math.Min(MAXTILECOLUMNS, _columnHeaders.Length) : 0), 4598int columnCount = _columnHeaders is null ? 0 : _columnHeaders.Length; 4603foreach (ColumnHeader column in _columnHeaders!) 5238[MemberNotNull(nameof(_columnHeaders))] 5242ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _columnHeaders?.Length ?? 0); 5244return _columnHeaders![index]; 5599if (_columnHeaders is not null) 5601for (int i = 0; i < _columnHeaders.Length; i++) 5801cLines = _columnHeaders is not null ? _columnHeaders.Length : 0, 5998_columnHeaders![(int)nmcd->dwItemSpec], 6043if (_columnHeaders is not null && _columnHeaders.Length > nmheader->iItem) 6045_columnHeaderClicked = _columnHeaders[nmheader->iItem]; 6059if (_columnHeaders is not null && nmheader->iItem < _columnHeaders.Length && 6094if (_columnHeaders is not null && nmheader->iItem < _columnHeaders.Length) 6096int w = _columnHeaders[nmheader->iItem].Width; 6099(_columnHeaderClicked == _columnHeaders[nmheader->iItem] && 6152if (_columnHeaders is not null && _columnHeaders.Length > nmheader->iItem) 6154_columnHeaders[nmheader->iItem].Width = _newWidthForColumnWidthChangingCancelled; 6274if (_columnHeaders is not null && _columnHeaders.Length > nmheader->iItem) 6276_columnHeaders[nmheader->iItem].Width = _newWidthForColumnWidthChangingCancelled; 6292Debug.Assert(_columnHeaders!.Length > 0, "there should be a column that we need to compensate for"); 6295ColumnHeader col = _columnHeaders![0];