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)
73
return _owner.
_columnHeaders
is null ? 0 : _owner.
_columnHeaders
.Length;
309
if (_owner.
_columnHeaders
is not null)
314
for (int colIdx = _owner.
_columnHeaders
.Length - 1; colIdx >= 0; colIdx--)
316
int w = _owner.
_columnHeaders
[colIdx].Width; // Update width before detaching from ListView
317
_owner.
_columnHeaders
[colIdx].OwnerListview = null;
318
_owner.
_columnHeaders
[colIdx].ReleaseUiaProvider();
329
for (int colIdx = _owner.
_columnHeaders
.Length - 1; colIdx >= 0; colIdx--)
331
int w = _owner.
_columnHeaders
[colIdx].Width; // Update width before detaching from ListView
337
_owner.
_columnHeaders
[colIdx].OwnerListview = null;
338
_owner.
_columnHeaders
[colIdx].ReleaseUiaProvider();
373
Array.Copy(_owner.
_columnHeaders
!, 0, dest, index, Count);
536
int columnCount = _owner.
_columnHeaders
.Length;
547
Array.Copy(_owner.
_columnHeaders
, 0, newHeaders, 0, index);
552
Array.Copy(_owner.
_columnHeaders
, index + 1, newHeaders, index, columnCount - index);
586
if (_owner.
_columnHeaders
is not null)
588
return _owner.
_columnHeaders
.GetEnumerator();
System\Windows\Forms\Controls\ListView\ListView.cs (52)
2506
ColumnHeader? col = (
_columnHeaders
is not null &&
_columnHeaders
.Length > 0) ?
_columnHeaders
[0] : null;
2716
if (
_columnHeaders
is not null)
2718
subItemBounds.Width =
_columnHeaders
[0].Width;
2731
_columnHeaders
![nmcd->iSubItem],
3056
if (
_columnHeaders
is not null)
3058
for (int colIdx =
_columnHeaders
.Length - 1; colIdx >= 0; colIdx--)
3060
_columnHeaders
[colIdx].OwnerListview = null;
3061
_columnHeaders
[colIdx].Dispose();
3448
if (
_columnHeaders
is null)
3453
for (int i = 0; i <
_columnHeaders
.Length; i++)
3455
if (
_columnHeaders
[i] == ch)
3793
if (
_columnHeaders
is null)
3798
for (int i = 0; i <
_columnHeaders
.Length; i++)
3800
_columnHeaders
[i]._correspondingListViewSubItemIndex = i;
3828
int columnCount =
_columnHeaders
is null ? 0 :
_columnHeaders
.Length;
3834
Array.Copy(
_columnHeaders
!, 0, newHeaders, 0, columnCount);
3846
Array.Copy(
_columnHeaders
, idx,
_columnHeaders
, idx + 1, columnCount - idx);
3849
_columnHeaders
[idx] = ch;
4125
cColumns = (uint)(
_columnHeaders
is not null ? Math.Min(MAXTILECOLUMNS,
_columnHeaders
.Length) : 0),
4598
int columnCount =
_columnHeaders
is null ? 0 :
_columnHeaders
.Length;
4603
foreach (ColumnHeader column in
_columnHeaders
!)
5238
[MemberNotNull(nameof(
_columnHeaders
))]
5242
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
_columnHeaders
?.Length ?? 0);
5244
return
_columnHeaders
![index];
5599
if (
_columnHeaders
is not null)
5601
for (int i = 0; i <
_columnHeaders
.Length; i++)
5801
cLines =
_columnHeaders
is not null ?
_columnHeaders
.Length : 0,
5998
_columnHeaders
![(int)nmcd->dwItemSpec],
6043
if (
_columnHeaders
is not null &&
_columnHeaders
.Length > nmheader->iItem)
6045
_columnHeaderClicked =
_columnHeaders
[nmheader->iItem];
6059
if (
_columnHeaders
is not null && nmheader->iItem <
_columnHeaders
.Length &&
6094
if (
_columnHeaders
is not null && nmheader->iItem <
_columnHeaders
.Length)
6096
int w =
_columnHeaders
[nmheader->iItem].Width;
6099
(_columnHeaderClicked ==
_columnHeaders
[nmheader->iItem] &&
6152
if (
_columnHeaders
is not null &&
_columnHeaders
.Length > nmheader->iItem)
6154
_columnHeaders
[nmheader->iItem].Width = _newWidthForColumnWidthChangingCancelled;
6274
if (
_columnHeaders
is not null &&
_columnHeaders
.Length > nmheader->iItem)
6276
_columnHeaders
[nmheader->iItem].Width = _newWidthForColumnWidthChangingCancelled;
6292
Debug.Assert(
_columnHeaders
!.Length > 0, "there should be a column that we need to compensate for");
6295
ColumnHeader col =
_columnHeaders
![0];