8 writes to Thickness
System.Windows.Forms (8)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
418Rows[rowIndex].Thickness = preferredThickness; // un-sharing the resized row 2324Rows[rowIndex].Thickness = preferredThickness; // un-sharing the resized row 6124Columns[_trackColumn].Thickness = proposed;
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (1)
375Thickness = value;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (2)
54Thickness = ScaleToCurrentDpi(DefaultWidth); 812set => Thickness = value;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (2)
33Thickness = DefaultHeight; 223Thickness = value;
85 references to Thickness
System.Windows.Forms (85)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (69)
383width = Columns[columnIndex].Thickness; 461width = Columns[columnIndex].Thickness; 958if (dataGridViewColumn.Thickness != minimumWidth) 964availableWidth += dataGridViewColumn.Thickness; 1236if (mostDeservingDataGridViewColumn.DesiredFillWidth != mostDeservingDataGridViewColumn.Thickness) 1770? Math.Max(preferredHeight, Columns[columnIndex].HeaderCell.GetPreferredHeight(-1, Columns[columnIndex].Thickness)) 1835? Math.Max(preferredHeight, Columns[columnIndexTmp].HeaderCell.GetPreferredHeight(-1, Columns[columnIndexTmp].Thickness)) 1899if (preferredColumnWidth != dataGridViewColumn.Thickness) 2976mouseX + _mouseBarOffset - Columns[_trackColumn].Thickness + 1, 2978Columns[_trackColumn].Thickness, 2988Columns[_trackColumn].Thickness, 4229cx += dataGridViewColumn.Thickness; 4262FirstDisplayedScrollingColumnHiddenWidth = dataGridViewColumn.Thickness - (cx - _horizontalOffset); 4638cx += dataGridViewColumn.Thickness; 4678while (dataGridViewColumn is not null && cx + dataGridViewColumn.Thickness <= displayWidth) 4680cx += dataGridViewColumn.Thickness; 4684_horizontalOffset -= dataGridViewColumn.Thickness; 4700Debug.Assert(dataGridViewColumn.Thickness > displayWidth - cx); 4702FirstDisplayedScrollingColumnHiddenWidth = dataGridViewColumn.Thickness - displayWidth + cx; 5525cx += dataGridViewColumn.Thickness; 5549cx += dataGridViewColumn.Thickness; 5760mouseX += ((hti._col == -1) ? RowHeadersWidth : Columns[hti._col].Thickness); 6111delta = GetColumnXFromIndex(_trackColumn) - Columns[_trackColumn].Thickness - newX + 1; 6116delta = newX - (GetColumnXFromIndex(_trackColumn) + Columns[_trackColumn].Thickness) + 1; 6121int proposed = Columns[_trackColumn].Thickness + delta; 8229cx -= dataGridViewColumn.Thickness; 8233cx += dataGridViewColumn.Thickness; 8260cx -= dataGridViewColumn.Thickness; 8264cx += dataGridViewColumn.Thickness; 8289int displayWidth, viewedColumnWidth = dataGridViewColumn.Thickness; 8343cx -= dataGridViewColumn.Thickness; 8347cx += dataGridViewColumn.Thickness; 8352xColumnLeftEdge = cx - dataGridViewColumn.Thickness; 8357xColumnLeftEdge = cx + dataGridViewColumn.Thickness; 8385cx -= dataGridViewColumn.Thickness; 8389cx += dataGridViewColumn.Thickness; 8394xColumnLeftEdge = cx - dataGridViewColumn.Thickness; 8399xColumnLeftEdge = cx + dataGridViewColumn.Thickness; 8465x -= dataGridViewColumn.Thickness; 8469x += dataGridViewColumn.Thickness; 8503x -= dataGridViewColumn.Thickness; 8507x += dataGridViewColumn.Thickness; 8525x += dataGridViewColumn.Thickness; 8529x -= dataGridViewColumn.Thickness; 8549while (dataGridViewColumn is not null && dataGridViewColumn.Thickness <= horizontalOffset) 8551horizontalOffset -= dataGridViewColumn.Thickness; 8773newColOffset += dataGridViewColumn!.Thickness; 8926newColOffset += dataGridViewColumn!.Thickness; 9349int columnWidth = Columns[hti._col].Thickness; 9493int columnWidth = Columns[hti._col].Thickness; 10561dataGridViewColumn.CachedThickness = dataGridViewColumn.Thickness; 11185dataGridViewColumn.CachedThickness = dataGridViewColumn.Thickness; 11194else if (dataGridViewColumn.Thickness != dataGridViewColumn.CachedThickness && previousInheritedModeAutoSized) 11264dataGridViewColumn.CachedThickness = dataGridViewColumn.Thickness; 11273else if (dataGridViewColumn.Thickness != dataGridViewColumn.CachedThickness && previousInheritedModeAutoSized) 14332if (_horizontalOffset >= dataGridViewColumn.Thickness) 14335_horizontalOffset -= dataGridViewColumn.Thickness; 15885mouseX += ((hti._col == -1) ? RowHeadersWidth : Columns[hti._col].Thickness); 15969mouseX += ((hti._col == -1) ? RowHeadersWidth : Columns[hti._col].Thickness); 16121mouseX += ((hti._col == -1) ? RowHeadersWidth : Columns[hti._col].Thickness); 16355mouseX += ((hti._col == -1) ? RowHeadersWidth : Columns[hti._col].Thickness); 16433mouseX += ((hti._col == -1) ? RowHeadersWidth : Columns[hti._col].Thickness); 17171int newHorizontalOffset = _horizScrollBar.Maximum - _horizScrollBar.LargeChange - dataGridViewColumn.Thickness; 17186Debug.Assert(_horizontalOffset >= dataGridViewColumn.Thickness); 17187_horizontalOffset -= dataGridViewColumn.Thickness; 19354cellBounds.Width = dataGridViewColumn.Thickness; 19432cellBounds.Width = dataGridViewColumn.Thickness; 26191newColOffset += dataGridViewColumn!.Thickness; 29182mouseX += ((htiToUse._col == -1) ? RowHeadersWidth : Columns[htiToUse._col].Thickness);
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (2)
367if (Thickness < value) 728dataGridViewBand._thickness = Thickness;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
2362return new Size(OwningColumn.Thickness, OwningRow.GetHeight(rowIndex));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (8)
130CachedThickness = Thickness; 135if (Thickness != CachedThickness && previousInheritedModeAutoSized) 811get => Thickness; 958preferredCellThickness = dataGridViewRow.Cells[Index].GetPreferredWidth(rowIndex, dataGridViewRow.Thickness); 982preferredCellThickness = dataGridViewRow.Cells[Index].GetPreferredWidth(rowIndex, dataGridViewRow.Thickness); 994cy += dataGridViewRow.Thickness; 1007preferredCellThickness = dataGridViewRow.Cells[Index].GetPreferredWidth(rowIndex, dataGridViewRow.Thickness); 1019cy += dataGridViewRow.Thickness;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (1)
580columnsWidth += _items[columnIndex].Thickness;
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
357return new Size(OwningColumn.Thickness, DataGridView.ColumnHeadersHeight);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (3)
215get => Thickness; 1521cellBounds.Width = dataGridViewColumn.Thickness; 1611cellBounds.Width = dataGridViewColumn.Thickness;