23 references to GetPreferredSize
System.Windows.Forms (23)
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
559
return
GetPreferredSize
(this.RowIndex);
winforms\Managed\System\WinForms\DataGridViewColumn.cs (4)
1253
preferredCellThickness = this.HeaderCell.
GetPreferredSize
(-1).Width;
1273
preferredCellThickness = dataGridViewRow.Cells[this.Index].
GetPreferredSize
(rowIndex).Width;
1296
preferredCellThickness = dataGridViewRow.Cells[this.Index].
GetPreferredSize
(rowIndex).Width;
1319
preferredCellThickness = dataGridViewRow.Cells[this.Index].
GetPreferredSize
(rowIndex).Width;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (16)
414
preferredThickness = dataGridViewCell.
GetPreferredSize
(rowIndex).Height;
492
preferredHeight = dataGridViewCell.
GetPreferredSize
(rowIndex).Height;
1749
preferredHeight = this.TopLeftHeaderCell.
GetPreferredSize
(-1).Height;
1763
preferredHeight = Math.Max(preferredHeight, this.Columns[columnIndex].HeaderCell.
GetPreferredSize
(-1).Height);
1822
preferredHeight = this.TopLeftHeaderCell.
GetPreferredSize
(-1).Height;
1836
preferredHeight = Math.Max(preferredHeight, this.Columns[columnIndexTmp].HeaderCell.
GetPreferredSize
(-1).Height);
2022
preferredWidth = this.TopLeftHeaderCell.
GetPreferredSize
(-1).Width;
2038
preferredWidth = Math.Max(preferredWidth, this.Rows.SharedRow(rowIndex).HeaderCell.
GetPreferredSize
(rowIndex).Width);
2058
preferredWidth = Math.Max(preferredWidth, dataGridViewRow.HeaderCell.
GetPreferredSize
(rowIndex).Width);
2077
preferredWidth = Math.Max(preferredWidth, dataGridViewRow.HeaderCell.
GetPreferredSize
(rowIndex).Width);
2096
preferredWidth = Math.Max(preferredWidth, this.Rows.SharedRow(rowIndex).HeaderCell.
GetPreferredSize
(rowIndex).Width);
2195
preferredWidth = this.TopLeftHeaderCell.
GetPreferredSize
(-1).Width;
2211
preferredWidth = Math.Max(preferredWidth, this.Rows.SharedRow(rowIndexTmp).HeaderCell.
GetPreferredSize
(rowIndexTmp).Width);
2231
preferredWidth = Math.Max(preferredWidth, dataGridViewRow.HeaderCell.
GetPreferredSize
(rowIndexTmp).Width);
2250
preferredWidth = Math.Max(preferredWidth, dataGridViewRow.HeaderCell.
GetPreferredSize
(rowIndexTmp).Width);
2269
preferredWidth = Math.Max(preferredWidth, this.Rows.SharedRow(rowIndexTmp).HeaderCell.
GetPreferredSize
(rowIndexTmp).Width);
winforms\Managed\System\WinForms\DataGridViewRow.cs (2)
1412
preferredRowThickness = Math.Max(preferredRowThickness, this.HeaderCell.
GetPreferredSize
(rowIndex).Height);
1429
preferredCellThickness = dataGridViewCell.
GetPreferredSize
(rowIndex).Height;