46 writes to Format
System.Windows.Forms (26)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
2889inheritedCellStyle.Format = cellStyle.Format; 2893inheritedCellStyle.Format = columnHeadersStyle.Format; 2897inheritedCellStyle.Format = dataGridViewStyle.Format;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (6)
2117inheritedCellStyleTmp.Format = cellStyle.Format; 2121inheritedCellStyleTmp.Format = rowStyle.Format; 2126inheritedCellStyleTmp.Format = DataGridView.RowsDefaultCellStyle.Format; 2130inheritedCellStyleTmp.Format = DataGridView.AlternatingRowsDefaultCellStyle.Format; 2134inheritedCellStyleTmp.Format = columnStyle.Format; 2138inheritedCellStyleTmp.Format = dataGridViewStyle.Format;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (2)
52Format = dataGridViewCellStyle.Format; 415Format = dataGridViewCellStyle.Format;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (2)
510inheritedCellStyleTmp.Format = columnStyle.Format; 514inheritedCellStyleTmp.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;
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\FormatStringEditorTests.cs (1)
25_cellStyle = new() { Format = "Initial" };
System.Windows.Forms.Tests (17)
System\Windows\Forms\DataGridViewCellStyleTests.cs (15)
49Format = "format", 323Format = value 328style.Format = value; 338Format = "value" 340style.Format = value; 626Format = "format", 669Format = "format", 717Format = "format", 783Format = "format", 919new DataGridViewCellStyle { Format = "format" }, 920new DataGridViewCellStyle { Format = "format" }, 925new DataGridViewCellStyle { Format = "format" }, 926new DataGridViewCellStyle { Format = "other" }, 1077new DataGridViewCellStyle { Format = "format" }, 1131Format = "format",
System\Windows\Forms\DataGridViewRowTests.cs (2)
2070Format = "format", 2086Format = "forma2t",
72 references to Format
System.Windows.Forms (56)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
2887if (cellStyle is not null && cellStyle.Format.Length != 0) 2889inheritedCellStyle.Format = cellStyle.Format; 2891else if (columnHeadersStyle.Format.Length != 0) 2893inheritedCellStyle.Format = columnHeadersStyle.Format; 2897inheritedCellStyle.Format = dataGridViewStyle.Format;
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonColumn.cs (1)
221!string.IsNullOrEmpty(defaultCellStyle.Format) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (13)
1621cellStyle.Format, 2115if (cellStyle is not null && cellStyle.Format.Length != 0) 2117inheritedCellStyleTmp.Format = cellStyle.Format; 2119else if (rowStyle is not null && rowStyle.Format.Length != 0) 2121inheritedCellStyleTmp.Format = rowStyle.Format; 2123else if (DataGridView.RowsDefaultCellStyle.Format.Length != 0 && 2124(rowIndex % 2 == 0 || DataGridView.AlternatingRowsDefaultCellStyle.Format.Length == 0)) 2126inheritedCellStyleTmp.Format = DataGridView.RowsDefaultCellStyle.Format; 2128else if (rowIndex % 2 == 1 && DataGridView.AlternatingRowsDefaultCellStyle.Format.Length != 0) 2130inheritedCellStyleTmp.Format = DataGridView.AlternatingRowsDefaultCellStyle.Format; 2132else if (columnStyle is not null && columnStyle.Format.Length != 0) 2134inheritedCellStyleTmp.Format = columnStyle.Format; 2138inheritedCellStyleTmp.Format = dataGridViewStyle.Format;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (8)
52Format = dataGridViewCellStyle.Format; 413if (dataGridViewCellStyle.Format.Length != 0) 415Format = dataGridViewCellStyle.Format; 457dgvcs.Format != Format || 490hash.Add(Format); 610if (!string.IsNullOrEmpty(Format)) 617sb.Append($" Format={Format}");
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (1)
307!string.IsNullOrEmpty(defaultCellStyle.Format) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (4)
220!string.IsNullOrEmpty(defaultCellStyle.Format) || 508if (columnStyle is not null && columnStyle.Format.Length != 0) 510inheritedCellStyleTmp.Format = columnStyle.Format; 514inheritedCellStyleTmp.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;
System.Windows.Forms.Tests (12)
System\Windows\Forms\DataGridViewCellStyleTests.cs (12)
25Assert.Empty(style.Format); 66Assert.Equal("format", style.Format); 91Assert.Empty(style.Format); 325Assert.Equal(expected, style.Format); 329Assert.Equal(expected, style.Format); 341Assert.Equal(expected, style.Format); 644Assert.Equal("format", style.Format); 686Assert.Equal("format", style.Format); 734Assert.Equal("format", style.Format); 759Assert.Empty(style.Format); 800Assert.Equal("format", style.Format); 825Assert.Empty(style.Format);