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)
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
_ = _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
_ = _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)
2510
ColumnHeader? col = (
_columnHeaders
is not null &&
_columnHeaders
.Length > 0) ?
_columnHeaders
[0] : null;
2720
if (
_columnHeaders
is not null)
2722
subItemBounds.Width =
_columnHeaders
[0].Width;
2735
_columnHeaders
![nmcd->iSubItem],
3060
if (
_columnHeaders
is not null)
3062
for (int colIdx =
_columnHeaders
.Length - 1; colIdx >= 0; colIdx--)
3064
_columnHeaders
[colIdx].OwnerListview = null;
3065
_columnHeaders
[colIdx].Dispose();
3452
if (
_columnHeaders
is null)
3457
for (int i = 0; i <
_columnHeaders
.Length; i++)
3459
if (
_columnHeaders
[i] == ch)
3797
if (
_columnHeaders
is null)
3802
for (int i = 0; i <
_columnHeaders
.Length; i++)
3804
_columnHeaders
[i]._correspondingListViewSubItemIndex = i;
3832
int columnCount =
_columnHeaders
is null ? 0 :
_columnHeaders
.Length;
3838
Array.Copy(
_columnHeaders
!, 0, newHeaders, 0, columnCount);
3850
Array.Copy(
_columnHeaders
, idx,
_columnHeaders
, idx + 1, columnCount - idx);
3853
_columnHeaders
[idx] = ch;
4129
cColumns = (uint)(
_columnHeaders
is not null ? Math.Min(MAXTILECOLUMNS,
_columnHeaders
.Length) : 0),
4602
int columnCount =
_columnHeaders
is null ? 0 :
_columnHeaders
.Length;
4607
foreach (ColumnHeader column in
_columnHeaders
!)
5242
[MemberNotNull(nameof(
_columnHeaders
))]
5246
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
_columnHeaders
?.Length ?? 0);
5248
return
_columnHeaders
![index];
5603
if (
_columnHeaders
is not null)
5605
for (int i = 0; i <
_columnHeaders
.Length; i++)
5805
cLines =
_columnHeaders
is not null ?
_columnHeaders
.Length : 0,
6002
_columnHeaders
![(int)nmcd->dwItemSpec],
6047
if (
_columnHeaders
is not null &&
_columnHeaders
.Length > nmheader->iItem)
6049
_columnHeaderClicked =
_columnHeaders
[nmheader->iItem];
6063
if (
_columnHeaders
is not null && nmheader->iItem <
_columnHeaders
.Length &&
6098
if (
_columnHeaders
is not null && nmheader->iItem <
_columnHeaders
.Length)
6100
int w =
_columnHeaders
[nmheader->iItem].Width;
6103
(_columnHeaderClicked ==
_columnHeaders
[nmheader->iItem] &&
6156
if (
_columnHeaders
is not null &&
_columnHeaders
.Length > nmheader->iItem)
6158
_columnHeaders
[nmheader->iItem].Width = _newWidthForColumnWidthChangingCancelled;
6278
if (
_columnHeaders
is not null &&
_columnHeaders
.Length > nmheader->iItem)
6280
_columnHeaders
[nmheader->iItem].Width = _newWidthForColumnWidthChangingCancelled;
6296
Debug.Assert(
_columnHeaders
!.Length > 0, "there should be a column that we need to compensate for");
6299
ColumnHeader col =
_columnHeaders
![0];