1 write to _dataGridViewImageCell
System.Windows.Forms.Tests (1)
System\Windows\Forms\DataGridViewImageCellTests.cs (1)
12public DataGridViewImageCellTests() => _dataGridViewImageCell = new();
46 references to _dataGridViewImageCell
System.Windows.Forms.Tests (46)
System\Windows\Forms\DataGridViewImageCellTests.cs (46)
14public void Dispose() => _dataGridViewImageCell.Dispose(); 18_dataGridViewImageCell.ValueIsIcon.Should().BeFalse(); 32_dataGridViewImageCell.ValueType = typeof(Image); 33var value = _dataGridViewImageCell.DefaultNewRowValue; 41_dataGridViewImageCell.ValueType = typeof(string); 42_dataGridViewImageCell.ValueIsIcon = false; 43object? 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; 101Rectangle bounds = (Rectangle)_dataGridViewImageCell.TestAccessor().Dynamic.GetContentBounds(g, dataGridViewCellStyle, 0); 110_dataGridViewImageCell.DataGridView = dataGridView; 113Rectangle bounds = (Rectangle)_dataGridViewImageCell.TestAccessor().Dynamic.GetContentBounds(g, dataGridViewCellStyle, -1); 124_dataGridViewImageCell.DataGridView = dataGridView; 125_dataGridViewImageCell.OwningColumn = null; 128Rectangle bounds = (Rectangle)_dataGridViewImageCell.TestAccessor().Dynamic.GetContentBounds(g, dataGridViewCellStyle, 0); 138Rectangle bounds = (Rectangle)_dataGridViewImageCell.TestAccessor().Dynamic.GetErrorIconBounds(g, dataGridViewCellStyle, 0); 149_dataGridViewImageCell.DataGridView = dataGridView; 152Rectangle bounds = (Rectangle)_dataGridViewImageCell.TestAccessor().Dynamic.GetErrorIconBounds(g, dataGridViewCellStyle, -1); 163_dataGridViewImageCell.DataGridView = dataGridView; 164_dataGridViewImageCell.OwningColumn = null; 167Rectangle bounds = (Rectangle)_dataGridViewImageCell.TestAccessor().Dynamic.GetErrorIconBounds(g, dataGridViewCellStyle, 0); 180_dataGridViewImageCell.DataGridView = dataGridView; 183Rectangle bounds = (Rectangle)_dataGridViewImageCell.TestAccessor().Dynamic.GetErrorIconBounds(g, dataGridViewCellStyle, 0); 196_dataGridViewImageCell.DataGridView = dataGridView; 197_dataGridViewImageCell.ErrorText = null; 198_dataGridViewImageCell.OwningColumn = null; 201Rectangle bounds = (Rectangle)_dataGridViewImageCell.TestAccessor().Dynamic.GetErrorIconBounds(g, dataGridViewCellStyle, 0); 209using DataGridViewImageCell dataGridViewImageCell = _dataGridViewImageCell; 220using DataGridViewImageCell dataGridViewImageCell = _dataGridViewImageCell; 234using DataGridViewImageCell dataGridViewImageCell = _dataGridViewImageCell; 262using DataGridViewImageCell dataGridViewImageCell = _dataGridViewImageCell;