1 write to _dataGridViewImageCell
System.Windows.Forms.Tests (1)
System\Windows\Forms\DataGridViewImageCellTests.cs (1)
12
public DataGridViewImageCellTests() =>
_dataGridViewImageCell
= new();
46 references to _dataGridViewImageCell
System.Windows.Forms.Tests (46)
System\Windows\Forms\DataGridViewImageCellTests.cs (46)
14
public void Dispose() =>
_dataGridViewImageCell
.Dispose();
18
_dataGridViewImageCell
.ValueIsIcon.Should().BeFalse();
32
_dataGridViewImageCell
.ValueType = typeof(Image);
33
var value =
_dataGridViewImageCell
.DefaultNewRowValue;
41
_dataGridViewImageCell
.ValueType = typeof(string);
42
_dataGridViewImageCell
.ValueIsIcon = false;
43
object? value =
_dataGridViewImageCell
.DefaultNewRowValue;
51
_dataGridViewImageCell
.EditType.Should().BeNull();
60
_dataGridViewImageCell
.ValueIsIcon = false;
61
_dataGridViewImageCell
.FormattedValueType.Should().Be(typeof(Image));
67
_dataGridViewImageCell
.ValueIsIcon = true;
68
_dataGridViewImageCell
.ValueIsIcon = false;
69
_dataGridViewImageCell
.ValueIsIcon.Should().BeFalse();
75
_dataGridViewImageCell
.ValueType = typeof(Image);
76
_dataGridViewImageCell
.ValueType.Should().Be(typeof(Image));
78
_dataGridViewImageCell
.ValueType = null;
79
_dataGridViewImageCell
.ValueType.Should().Be(typeof(Image));
81
_dataGridViewImageCell
.ValueIsIcon = true;
82
_dataGridViewImageCell
.ValueType.Should().Be(typeof(Icon));
88
_dataGridViewImageCell
.ValueType = typeof(Icon);
89
_dataGridViewImageCell
.ValueIsIcon.Should().BeTrue();
91
_dataGridViewImageCell
.ValueType = null;
92
_dataGridViewImageCell
.ValueIsIcon.Should().BeFalse();
100
_dataGridViewImageCell
.DataGridView = null;
101
Rectangle bounds = (Rectangle)
_dataGridViewImageCell
.TestAccessor().Dynamic.GetContentBounds(g, dataGridViewCellStyle, 0);
110
_dataGridViewImageCell
.DataGridView = dataGridView;
113
Rectangle bounds = (Rectangle)
_dataGridViewImageCell
.TestAccessor().Dynamic.GetContentBounds(g, dataGridViewCellStyle, -1);
124
_dataGridViewImageCell
.DataGridView = dataGridView;
125
_dataGridViewImageCell
.OwningColumn = null;
128
Rectangle bounds = (Rectangle)
_dataGridViewImageCell
.TestAccessor().Dynamic.GetContentBounds(g, dataGridViewCellStyle, 0);
138
Rectangle bounds = (Rectangle)
_dataGridViewImageCell
.TestAccessor().Dynamic.GetErrorIconBounds(g, dataGridViewCellStyle, 0);
149
_dataGridViewImageCell
.DataGridView = dataGridView;
152
Rectangle bounds = (Rectangle)
_dataGridViewImageCell
.TestAccessor().Dynamic.GetErrorIconBounds(g, dataGridViewCellStyle, -1);
163
_dataGridViewImageCell
.DataGridView = dataGridView;
164
_dataGridViewImageCell
.OwningColumn = null;
167
Rectangle bounds = (Rectangle)
_dataGridViewImageCell
.TestAccessor().Dynamic.GetErrorIconBounds(g, dataGridViewCellStyle, 0);
180
_dataGridViewImageCell
.DataGridView = dataGridView;
183
Rectangle bounds = (Rectangle)
_dataGridViewImageCell
.TestAccessor().Dynamic.GetErrorIconBounds(g, dataGridViewCellStyle, 0);
196
_dataGridViewImageCell
.DataGridView = dataGridView;
197
_dataGridViewImageCell
.ErrorText = null;
198
_dataGridViewImageCell
.OwningColumn = null;
201
Rectangle bounds = (Rectangle)
_dataGridViewImageCell
.TestAccessor().Dynamic.GetErrorIconBounds(g, dataGridViewCellStyle, 0);
209
using DataGridViewImageCell dataGridViewImageCell =
_dataGridViewImageCell
;
220
using DataGridViewImageCell dataGridViewImageCell =
_dataGridViewImageCell
;
234
using DataGridViewImageCell dataGridViewImageCell =
_dataGridViewImageCell
;
262
using DataGridViewImageCell dataGridViewImageCell =
_dataGridViewImageCell
;