16 references to GetPreferredWidth
System.Windows.Forms (16)
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
3121
int width =
GetPreferredWidth
(rowIndex, this.OwningRow.Height);
winforms\Managed\System\WinForms\DataGridViewColumn.cs (4)
1249
preferredCellThickness = this.HeaderCell.
GetPreferredWidth
(-1, dataGridView.ColumnHeadersHeight);
1269
preferredCellThickness = dataGridViewRow.Cells[this.Index].
GetPreferredWidth
(rowIndex, dataGridViewRow.Thickness);
1292
preferredCellThickness = dataGridViewRow.Cells[this.Index].
GetPreferredWidth
(rowIndex, dataGridViewRow.Thickness);
1315
preferredCellThickness = dataGridViewRow.Cells[this.Index].
GetPreferredWidth
(rowIndex, dataGridViewRow.Thickness);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (11)
332
int preferredThickness = dataGridViewRow.Cells[dataGridViewColumn.Index].
GetPreferredWidth
(rowIndex, dataGridViewRow.GetHeight(rowIndex));
2018
preferredWidth = this.TopLeftHeaderCell.
GetPreferredWidth
(-1, this.layout.TopLeftHeader.Height);
2034
preferredWidth = Math.Max(preferredWidth, this.Rows.SharedRow(rowIndex).HeaderCell.
GetPreferredWidth
(rowIndex, this.Rows.SharedRow(rowIndex).GetHeight(rowIndex)));
2054
preferredWidth = Math.Max(preferredWidth, dataGridViewRow.HeaderCell.
GetPreferredWidth
(rowIndex, dataGridViewRowHeight));
2073
preferredWidth = Math.Max(preferredWidth, dataGridViewRow.HeaderCell.
GetPreferredWidth
(rowIndex, dataGridViewRowHeight));
2092
preferredWidth = Math.Max(preferredWidth, this.Rows.SharedRow(rowIndex).HeaderCell.
GetPreferredWidth
(rowIndex, this.Rows.SharedRow(rowIndex).GetHeight(rowIndex)));
2191
preferredWidth = this.TopLeftHeaderCell.
GetPreferredWidth
(-1, this.layout.TopLeftHeader.Height);
2207
preferredWidth = Math.Max(preferredWidth, this.Rows.SharedRow(rowIndexTmp).HeaderCell.
GetPreferredWidth
(rowIndexTmp, this.Rows.SharedRow(rowIndexTmp).GetHeight(rowIndexTmp)));
2227
preferredWidth = Math.Max(preferredWidth, dataGridViewRow.HeaderCell.
GetPreferredWidth
(rowIndexTmp, dataGridViewRowHeight));
2246
preferredWidth = Math.Max(preferredWidth, dataGridViewRow.HeaderCell.
GetPreferredWidth
(rowIndexTmp, dataGridViewRowHeight));
2265
preferredWidth = Math.Max(preferredWidth, this.Rows.SharedRow(rowIndexTmp).HeaderCell.
GetPreferredWidth
(rowIndexTmp, this.Rows.SharedRow(rowIndexTmp).GetHeight(rowIndexTmp)));