1 write to _owner
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (1)
18
_owner
= owner.OrThrowIfNull();
45 references to _owner
System.Windows.Forms (45)
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (45)
25
public virtual ColumnHeader this[int index] =>
_owner
.GetColumnHeader(index);
73
return
_owner
._columnHeaders is null ? 0 :
_owner
._columnHeaders.Length;
181
return
_owner
.InsertColumn(Count, columnHeader);
187
_owner
.InsertColumn(index, value);
197
return
_owner
.InsertColumn(Count, columnHeader);
209
return
_owner
.InsertColumn(Count, columnHeader);
219
return
_owner
.InsertColumn(Count, columnHeader);
230
return
_owner
.InsertColumn(Count, columnHeader);
242
return
_owner
.InsertColumn(Count, columnHeader);
254
return
_owner
.InsertColumn(Count, columnHeader);
287
_owner
.SetDisplayIndices(indices);
309
if (
_owner
._columnHeaders is not null)
311
if (
_owner
.View == View.Tile)
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();
321
_owner
._columnHeaders = null;
322
if (
_owner
.IsHandleCreated)
324
_owner
.RecreateHandleInternal();
329
for (int colIdx =
_owner
._columnHeaders.Length - 1; colIdx >= 0; colIdx--)
331
_ =
_owner
._columnHeaders[colIdx].Width; // Update width before detaching from ListView
332
if (
_owner
.IsHandleCreated)
334
PInvokeCore.SendMessage(
_owner
, PInvoke.LVM_DELETECOLUMN, (WPARAM)colIdx);
337
_owner
._columnHeaders[colIdx].OwnerListview = null;
338
_owner
._columnHeaders[colIdx].ReleaseUiaProvider();
341
_owner
._columnHeaders = null;
373
Array.Copy(
_owner
._columnHeaders!, 0, dest, index, Count);
405
_owner
.InsertColumn(index, value);
500
ColumnHeader columnHeader =
_owner
.GetColumnHeader(index);
505
if (
_owner
.IsHandleCreated &&
_owner
.View != View.Tile)
507
int retval = (int)PInvokeCore.SendMessage(
_owner
, PInvoke.LVM_DELETECOLUMN, (WPARAM)index);
536
int columnCount =
_owner
._columnHeaders.Length;
540
_owner
._columnHeaders = null;
547
Array.Copy(
_owner
._columnHeaders, 0, newHeaders, 0, index);
552
Array.Copy(
_owner
._columnHeaders, index + 1, newHeaders, index, columnCount - index);
555
_owner
._columnHeaders = newHeaders;
559
if (
_owner
.IsHandleCreated &&
_owner
.View == View.Tile)
561
_owner
.RecreateHandleInternal();
564
_owner
.SetDisplayIndices(indices);
586
if (
_owner
._columnHeaders is not null)
588
return
_owner
._columnHeaders.GetEnumerator();