1 write to listview
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ColumnHeader.cs (1)
66
listview
= value;
36 references to listview
System.Windows.Forms (36)
winforms\Managed\System\WinForms\ColumnHeader.cs (36)
60
return
listview
;
127
if (this.
listview
== null) {
132
if (value < 0 || value> (this.
listview
.Columns.Count - 1)) {
138
int[] colsOrder = new int[this.
listview
.Columns.Count];
144
for (int i = 0; i < this.
listview
.Columns.Count; i ++) {
146
ColumnHeader hdr = this.
listview
.Columns[i];
181
if (
listview
!= null)
182
return
listview
.GetColumnIndex(this);
256
return this.
listview
;
305
if (
listview
!= null) {
306
listview
.SetColumnInfo(NativeMethods.LVCF_TEXT, this);
323
if (!textAlignInitialized && (
listview
!= null))
328
if ((Index != 0) && (
listview
.RightToLeft == RightToLeft.Yes) && !
listview
.IsMirrored)
348
if (
listview
!= null) {
349
listview
.SetColumnInfo(NativeMethods.LVCF_FMT, this);
350
listview
.Invalidate();
393
if (
listview
!= null &&
listview
.IsHandleCreated && !
listview
.Disposing &&
listview
.View == View.Details) {
397
IntPtr hwndHdr = UnsafeNativeMethods.SendMessage(new HandleRef(
listview
,
listview
.Handle), NativeMethods.LVM_GETHEADER, 0, 0);
399
int nativeColumnCount = (int)UnsafeNativeMethods.SendMessage(new HandleRef(
listview
, hwndHdr), NativeMethods.HDM_GETITEMCOUNT, 0, 0);
401
width = (int)UnsafeNativeMethods.SendMessage(new HandleRef(
listview
,
listview
.Handle), NativeMethods.LVM_GETCOLUMNWIDTH, Index, 0);
410
if (
listview
!= null)
411
listview
.SetColumnWidth(Index, ColumnHeaderAutoResizeStyle.None);
422
if (this.
listview
!= null) {
423
this.
listview
.AutoResizeColumn(this.Index, headerAutoResize);
457
if (
listview
!= null) {
460
listview
.Columns.RemoveAt(index);
474
if (this.
listview
.IsHandleCreated && !this.
listview
.Disposing) {
475
UnsafeNativeMethods.SendMessage(new HandleRef(this.
listview
, this.
listview
.Handle), NativeMethods.LVM_SETCOLUMNORDERARRAY, cols.Length, cols);