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