2 overrides of GetInheritedStyle
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
275
public override DataGridViewCellStyle
GetInheritedStyle
(DataGridViewCellStyle? inheritedCellStyle, int rowIndex, bool includeColors)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
305
public override DataGridViewCellStyle
GetInheritedStyle
(DataGridViewCellStyle? inheritedCellStyle, int rowIndex, bool includeColors)
26 references to GetInheritedStyle
System.Windows.Forms (22)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
2640
DataGridViewCellStyle dataGridViewCellStyle = dataGridViewCell.
GetInheritedStyle
(inheritedCellStyle: null, _ptCurrentCell.Y, includeColors: true);
3242
DataGridViewCellStyle dataGridViewCellStyle = dataGridViewCell.
GetInheritedStyle
(inheritedCellStyle: null, _ptCurrentCell.Y, includeColors: true);
13092
DataGridViewCellStyle dataGridViewCellStyle = currentCell.
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: false);
25293
object? nullValue = dataGridViewCurrentCell.
GetInheritedStyle
(inheritedCellStyle: null, _ptCurrentCell.Y, includeColors: false).NullValue;
25477
DataGridViewCellStyle dataGridViewCellStyle = dataGridViewCurrentCell.
GetInheritedStyle
(inheritedCellStyle: null, _ptCurrentCell.Y, includeColors: true);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (12)
183
DataGridViewCellStyle dataGridViewCellStyle =
GetInheritedStyle
(inheritedCellStyle: null, RowIndex, includeColors: false);
229
DataGridViewCellStyle dataGridViewCellStyle =
GetInheritedStyle
(inheritedCellStyle: null, RowIndex, includeColors: false);
1307
DataGridViewCellStyle dataGridViewCellStyle =
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: false);
1470
DataGridViewCellStyle dataGridViewCellStyle =
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: false);
1526
DataGridViewCellStyle dataGridViewCellStyle =
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: false);
1532
DataGridViewCellStyle dataGridViewCellStyle =
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: false);
2277
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: true);
2288
DataGridViewCellStyle dataGridViewCellStyle =
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: false);
2300
DataGridViewCellStyle dataGridViewCellStyle =
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: false);
2343
DataGridViewCellStyle dataGridViewCellStyle =
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: false);
2732
DataGridViewCellStyle dataGridViewCellStyle =
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: false);
2752
DataGridViewCellStyle dataGridViewCellStyle =
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: false);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (3)
530
DataGridViewCellStyle cellStyle =
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: false);
1232
DataGridViewCellStyle dataGridViewCellStyle =
GetInheritedStyle
(
1742
DataGridViewCellStyle cellStyle =
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: false);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (2)
1549
cell.
GetInheritedStyle
(inheritedCellStyle, rowIndex, includeColors: true);
1639
cell.
GetInheritedStyle
(inheritedCellStyle, rowIndex, includeColors: true);
System.Windows.Forms.Tests (4)
System\Windows\Forms\DataGridViewCellTests.cs (4)
4701
Assert.Throws<InvalidOperationException>(() => cell.
GetInheritedStyle
(new DataGridViewCellStyle(), -1, true));
4708
Assert.Throws<InvalidOperationException>(() => cell.
GetInheritedStyle
(new DataGridViewCellStyle(), -1, true));
4717
Assert.Throws<InvalidOperationException>(() => cell.
GetInheritedStyle
(new DataGridViewCellStyle(), -1, true));
4743
Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.
GetInheritedStyle
(new DataGridViewCellStyle(), rowIndex, true));