Base:
property
CellTemplate
System.Windows.Forms.DataGridViewColumn.CellTemplate
2 writes to CellTemplate
System.Windows.Forms.Tests (2)
System\Windows\Forms\DataGridViewImageColumnTests.cs (2)
29
_column.
CellTemplate
= null;
37
_column.
CellTemplate
= null;
10 references to CellTemplate
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (2)
131
private DataGridViewImageCell? ImageCellTemplate => (DataGridViewImageCell?)
CellTemplate
;
259
if (
CellTemplate
is not DataGridViewImageCell templateCell)
System.Windows.Forms.Tests (8)
System\Windows\Forms\DataGridViewImageColumnTests.cs (8)
131
using DataGridViewImageCell cellTemplate = (DataGridViewImageCell)_column.
CellTemplate
!;
145
_column.
CellTemplate
.Should().NotBeNull();
165
using DataGridViewImageCell cellTemplate = (DataGridViewImageCell)_column.
CellTemplate
!;
179
_column.
CellTemplate
.Should().NotBeNull();
180
((DataGridViewImageCell)_column.
CellTemplate
).ValueIsIcon.Should().BeTrue();
192
_column.
CellTemplate
.Should().NotBeNull();
229
_column.
CellTemplate
.Should().NotBeNull();
230
((DataGridViewImageCell)_column.
CellTemplate
).ImageLayout.Should().Be(DataGridViewImageCellLayout.Stretch);