6 references to InheritedStyle
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
236DataGridViewCellStyle dataGridViewCellStyle = _owner.InheritedStyle;
System.Windows.Forms.Tests (5)
System\Windows\Forms\DataGridViewCellTests.cs (3)
1512Assert.Throws<InvalidOperationException>(() => cell.InheritedStyle); 1521Assert.Throws<InvalidOperationException>(() => cell.InheritedStyle); 1530Assert.Throws<InvalidOperationException>(() => cell.InheritedStyle);
System\Windows\Forms\DataGridViewTests.cs (2)
3690DataGridViewCellFormattingEventArgs cellFormattingEventArgs = new(0, 0, dataGridView.Rows[0].Cells[0].Value, dataGridView.Rows[0].Cells[0].ValueType, dataGridView.Rows[0].Cells[0].InheritedStyle); 3695cellFormattingEventArgs = new(0, 1, dataGridView.Rows[1].Cells[0].Value, dataGridView.Rows[1].Cells[0].ValueType, dataGridView.Rows[1].Cells[0].InheritedStyle);