28 writes to Format
System.Windows.Forms (26)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
2945inheritedCellStyle.Format = cellStyle.Format; 2949inheritedCellStyle.Format = columnHeadersStyle.Format; 2953inheritedCellStyle.Format = dataGridViewStyle.Format;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (6)
2118inheritedCellStyleTmp.Format = cellStyle.Format; 2122inheritedCellStyleTmp.Format = rowStyle.Format; 2127inheritedCellStyleTmp.Format = DataGridView.RowsDefaultCellStyle.Format; 2131inheritedCellStyleTmp.Format = DataGridView.AlternatingRowsDefaultCellStyle.Format; 2135inheritedCellStyleTmp.Format = columnStyle.Format; 2139inheritedCellStyleTmp.Format = dataGridViewStyle.Format;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (2)
53Format = dataGridViewCellStyle.Format; 436Format = dataGridViewCellStyle.Format;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (2)
512inheritedCellStyleTmp.Format = columnStyle.Format; 516inheritedCellStyleTmp.Format = dataGridViewStyle.Format;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (3)
395inheritedCellStyleTmp.Format = cellStyle.Format; 399inheritedCellStyleTmp.Format = columnHeadersStyle.Format; 403inheritedCellStyleTmp.Format = dataGridViewStyle.Format;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (7)
708inheritedCellStyle.Format = cellStyle.Format; 712inheritedCellStyle.Format = rowHeadersStyle.Format; 716inheritedCellStyle.Format = dataGridViewStyle.Format; 937inheritedRowStyle.Format = rowStyle.Format; 941inheritedRowStyle.Format = rowsDefaultCellStyle.Format; 945inheritedRowStyle.Format = alternatingRowsDefaultCellStyle.Format; 949inheritedRowStyle.Format = dataGridViewStyle.Format;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (3)
420inheritedCellStyleTmp.Format = cellStyle.Format; 424inheritedCellStyleTmp.Format = rowHeadersStyle.Format; 428inheritedCellStyleTmp.Format = dataGridViewStyle.Format;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
390destColumn.DefaultCellStyle.Format = srcColumn.DefaultCellStyle.Format;
System\Windows\Forms\Design\FormatStringDialog.cs (1)
270_dgvCellStyle.Format = formatTypeItem.FormatString;
60 references to Format
System.Windows.Forms (56)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
2943if (cellStyle is not null && cellStyle.Format.Length != 0) 2945inheritedCellStyle.Format = cellStyle.Format; 2947else if (columnHeadersStyle.Format.Length != 0) 2949inheritedCellStyle.Format = columnHeadersStyle.Format; 2953inheritedCellStyle.Format = dataGridViewStyle.Format;
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonColumn.cs (1)
221!string.IsNullOrEmpty(defaultCellStyle.Format) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (13)
1622cellStyle.Format, 2116if (cellStyle is not null && cellStyle.Format.Length != 0) 2118inheritedCellStyleTmp.Format = cellStyle.Format; 2120else if (rowStyle is not null && rowStyle.Format.Length != 0) 2122inheritedCellStyleTmp.Format = rowStyle.Format; 2124else if (DataGridView.RowsDefaultCellStyle.Format.Length != 0 && 2125(rowIndex % 2 == 0 || DataGridView.AlternatingRowsDefaultCellStyle.Format.Length == 0)) 2127inheritedCellStyleTmp.Format = DataGridView.RowsDefaultCellStyle.Format; 2129else if (rowIndex % 2 == 1 && DataGridView.AlternatingRowsDefaultCellStyle.Format.Length != 0) 2131inheritedCellStyleTmp.Format = DataGridView.AlternatingRowsDefaultCellStyle.Format; 2133else if (columnStyle is not null && columnStyle.Format.Length != 0) 2135inheritedCellStyleTmp.Format = columnStyle.Format; 2139inheritedCellStyleTmp.Format = dataGridViewStyle.Format;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (8)
53Format = dataGridViewCellStyle.Format; 434if (dataGridViewCellStyle.Format.Length != 0) 436Format = dataGridViewCellStyle.Format; 483dgvcs.Format != Format || 517hash.Add(Format); 640if (!string.IsNullOrEmpty(Format)) 647sb.Append($" Format={Format}");
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (1)
307!string.IsNullOrEmpty(defaultCellStyle.Format) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (4)
222!string.IsNullOrEmpty(defaultCellStyle.Format) || 510if (columnStyle is not null && columnStyle.Format.Length != 0) 512inheritedCellStyleTmp.Format = columnStyle.Format; 516inheritedCellStyleTmp.Format = dataGridViewStyle.Format;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (5)
393if (cellStyle is not null && cellStyle.Format.Length != 0) 395inheritedCellStyleTmp.Format = cellStyle.Format; 397else if (columnHeadersStyle.Format.Length != 0) 399inheritedCellStyleTmp.Format = columnHeadersStyle.Format; 403inheritedCellStyleTmp.Format = dataGridViewStyle.Format;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (1)
283!string.IsNullOrEmpty(defaultCellStyle.Format) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (13)
706if (cellStyle is not null && cellStyle.Format.Length != 0) 708inheritedCellStyle.Format = cellStyle.Format; 710else if (rowHeadersStyle.Format.Length != 0) 712inheritedCellStyle.Format = rowHeadersStyle.Format; 716inheritedCellStyle.Format = dataGridViewStyle.Format; 935if (rowStyle is not null && rowStyle.Format.Length != 0) 937inheritedRowStyle.Format = rowStyle.Format; 939else if (rowsDefaultCellStyle.Format.Length != 0 && (rowIndex % 2 == 0 || alternatingRowsDefaultCellStyle.Format.Length == 0)) 941inheritedRowStyle.Format = rowsDefaultCellStyle.Format; 943else if (rowIndex % 2 == 1 && alternatingRowsDefaultCellStyle.Format.Length != 0) 945inheritedRowStyle.Format = alternatingRowsDefaultCellStyle.Format; 949inheritedRowStyle.Format = dataGridViewStyle.Format;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (5)
418if (cellStyle is not null && cellStyle.Format.Length != 0) 420inheritedCellStyleTmp.Format = cellStyle.Format; 422else if (rowHeadersStyle.Format.Length != 0) 424inheritedCellStyleTmp.Format = rowHeadersStyle.Format; 428inheritedCellStyleTmp.Format = dataGridViewStyle.Format;
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (3)
388if (defaultSrcColumn is null || !defaultSrcColumn.DefaultCellStyle.Format.Equals(srcColumn.DefaultCellStyle.Format)) 390destColumn.DefaultCellStyle.Format = srcColumn.DefaultCellStyle.Format;
System\Windows\Forms\Design\FormatStringDialog.cs (1)
113string formatString = _dgvCellStyle is not null ? _dgvCellStyle.Format : _listControl!.FormatString;