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