44 writes to Tag
System.Windows.Forms (26)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
2943inheritedCellStyle.Tag = cellStyle.Tag; 2947inheritedCellStyle.Tag = columnHeadersStyle.Tag; 2951inheritedCellStyle.Tag = dataGridViewStyle.Tag;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (6)
2223inheritedCellStyleTmp.Tag = cellStyle.Tag; 2227inheritedCellStyleTmp.Tag = rowStyle.Tag; 2232inheritedCellStyleTmp.Tag = DataGridView.RowsDefaultCellStyle.Tag; 2236inheritedCellStyleTmp.Tag = DataGridView.AlternatingRowsDefaultCellStyle.Tag; 2240inheritedCellStyleTmp.Tag = columnStyle.Tag; 2244inheritedCellStyleTmp.Tag = dataGridViewStyle.Tag;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (2)
60Tag = dataGridViewCellStyle.Tag; 435Tag = dataGridViewCellStyle.Tag;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (2)
548inheritedCellStyleTmp.Tag = columnStyle.Tag; 552inheritedCellStyleTmp.Tag = dataGridViewStyle.Tag;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (3)
449inheritedCellStyleTmp.Tag = cellStyle.Tag; 453inheritedCellStyleTmp.Tag = columnHeadersStyle.Tag; 457inheritedCellStyleTmp.Tag = dataGridViewStyle.Tag;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (7)
762inheritedCellStyle.Tag = cellStyle.Tag; 766inheritedCellStyle.Tag = rowHeadersStyle.Tag; 770inheritedCellStyle.Tag = dataGridViewStyle.Tag; 1007inheritedRowStyle.Tag = rowStyle.Tag; 1011inheritedRowStyle.Tag = rowsDefaultCellStyle.Tag; 1015inheritedRowStyle.Tag = alternatingRowsDefaultCellStyle.Tag; 1019inheritedRowStyle.Tag = dataGridViewStyle.Tag;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (3)
474inheritedCellStyleTmp.Tag = cellStyle.Tag; 478inheritedCellStyleTmp.Tag = rowHeadersStyle.Tag; 482inheritedCellStyleTmp.Tag = dataGridViewStyle.Tag;
System.Windows.Forms.Tests (18)
System\Windows\Forms\DataGridViewCellStyleTests.cs (16)
55Tag = "tag", 567Tag = value 572style.Tag = value; 582Tag = "tag" 584style.Tag = value; 588style.Tag = value; 632Tag = "tag", 675Tag = "tag", 723Tag = "tag", 789Tag = "tag", 1003new DataGridViewCellStyle { Tag = "tag" }, 1004new DataGridViewCellStyle { Tag = "tag" }, 1009new DataGridViewCellStyle { Tag = "tag" }, 1010new DataGridViewCellStyle { Tag = "other" }, 1112new DataGridViewCellStyle { Tag = "tag" }, 1137Tag = "tag",
System\Windows\Forms\DataGridViewRowTests.cs (2)
2076Tag = "tag", 2092Tag = "tag2",
68 references to Tag
System.Windows.Forms (55)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
2941if (cellStyle is not null && cellStyle.Tag is not null) 2943inheritedCellStyle.Tag = cellStyle.Tag; 2945else if (columnHeadersStyle!.Tag is not null) 2947inheritedCellStyle.Tag = columnHeadersStyle.Tag; 2951inheritedCellStyle.Tag = dataGridViewStyle.Tag;
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonColumn.cs (1)
225defaultCellStyle.Tag is not null ||
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (12)
2221if (cellStyle is not null && cellStyle.Tag is not null) 2223inheritedCellStyleTmp.Tag = cellStyle.Tag; 2225else if (rowStyle is not null && rowStyle.Tag is not null) 2227inheritedCellStyleTmp.Tag = rowStyle.Tag; 2229else if (DataGridView.RowsDefaultCellStyle.Tag is not null && 2230(rowIndex % 2 == 0 || DataGridView.AlternatingRowsDefaultCellStyle.Tag is null)) 2232inheritedCellStyleTmp.Tag = DataGridView.RowsDefaultCellStyle.Tag; 2234else if (rowIndex % 2 == 1 && DataGridView.AlternatingRowsDefaultCellStyle.Tag is not null) 2236inheritedCellStyleTmp.Tag = DataGridView.AlternatingRowsDefaultCellStyle.Tag; 2238else if (columnStyle is not null && columnStyle.Tag is not null) 2240inheritedCellStyleTmp.Tag = columnStyle.Tag; 2244inheritedCellStyleTmp.Tag = dataGridViewStyle.Tag;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (8)
60Tag = dataGridViewCellStyle.Tag; 433if (dataGridViewCellStyle.Tag is not null) 435Tag = dataGridViewCellStyle.Tag; 461dgvcs.Tag != Tag || 498hash.Add(Tag); 654if (Tag is not null) 661sb.Append($" Tag={Tag}");
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (1)
311defaultCellStyle.Tag is not null ||
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (4)
224defaultCellStyle.Tag is not null || 546if (columnStyle is not null && columnStyle.Tag is not null) 548inheritedCellStyleTmp.Tag = columnStyle.Tag; 552inheritedCellStyleTmp.Tag = dataGridViewStyle.Tag;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (5)
447if (cellStyle is not null && cellStyle.Tag is not null) 449inheritedCellStyleTmp.Tag = cellStyle.Tag; 451else if (columnHeadersStyle.Tag is not null) 453inheritedCellStyleTmp.Tag = columnHeadersStyle.Tag; 457inheritedCellStyleTmp.Tag = dataGridViewStyle.Tag;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (1)
287defaultCellStyle.Tag is not null ||
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (13)
760if (cellStyle is not null && cellStyle.Tag is not null) 762inheritedCellStyle.Tag = cellStyle.Tag; 764else if (rowHeadersStyle?.Tag is not null) 766inheritedCellStyle.Tag = rowHeadersStyle.Tag; 770inheritedCellStyle.Tag = dataGridViewStyle.Tag; 1005if (rowStyle is not null && rowStyle.Tag is not null) 1007inheritedRowStyle.Tag = rowStyle.Tag; 1009else if (rowsDefaultCellStyle.Tag is not null && (rowIndex % 2 == 0 || alternatingRowsDefaultCellStyle.Tag is null)) 1011inheritedRowStyle.Tag = rowsDefaultCellStyle.Tag; 1013else if (rowIndex % 2 == 1 && alternatingRowsDefaultCellStyle.Tag is not null) 1015inheritedRowStyle.Tag = alternatingRowsDefaultCellStyle.Tag; 1019inheritedRowStyle.Tag = dataGridViewStyle.Tag;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (5)
472if (cellStyle is not null && cellStyle.Tag is not null) 474inheritedCellStyleTmp.Tag = cellStyle.Tag; 476else if (rowHeadersStyle.Tag is not null) 478inheritedCellStyleTmp.Tag = rowHeadersStyle.Tag; 482inheritedCellStyleTmp.Tag = dataGridViewStyle.Tag;
System.Windows.Forms.Tests (13)
System\Windows\Forms\DataGridViewCellStyleTests.cs (13)
34Assert.Null(style.Tag); 75Assert.Equal("tag", style.Tag); 100Assert.Null(style.Tag); 569Assert.Same(value, style.Tag); 573Assert.Same(value, style.Tag); 585Assert.Equal(value, style.Tag); 589Assert.Equal(value, style.Tag); 653Assert.Equal("tag", style.Tag); 695Assert.Equal("tag", style.Tag); 743Assert.Equal("tag", style.Tag); 768Assert.Null(style.Tag); 809Assert.Equal("tag", style.Tag); 834Assert.Null(style.Tag);