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);
3239
DataGridViewCellStyle dataGridViewCellStyle = dataGridViewCell.
GetInheritedStyle
(inheritedCellStyle: null, _ptCurrentCell.Y, includeColors: true);
13089
DataGridViewCellStyle dataGridViewCellStyle = currentCell.
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: false);
25290
object? nullValue = dataGridViewCurrentCell.
GetInheritedStyle
(inheritedCellStyle: null, _ptCurrentCell.Y, includeColors: false).NullValue;
25474
DataGridViewCellStyle dataGridViewCellStyle = dataGridViewCurrentCell.
GetInheritedStyle
(inheritedCellStyle: null, _ptCurrentCell.Y, includeColors: true);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (12)
175
DataGridViewCellStyle dataGridViewCellStyle =
GetInheritedStyle
(inheritedCellStyle: null, RowIndex, includeColors: false);
221
DataGridViewCellStyle dataGridViewCellStyle =
GetInheritedStyle
(inheritedCellStyle: null, RowIndex, includeColors: false);
1296
DataGridViewCellStyle dataGridViewCellStyle =
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: false);
1459
DataGridViewCellStyle dataGridViewCellStyle =
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: false);
1515
DataGridViewCellStyle dataGridViewCellStyle =
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: false);
1521
DataGridViewCellStyle dataGridViewCellStyle =
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: false);
2266
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: true);
2277
DataGridViewCellStyle dataGridViewCellStyle =
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: false);
2289
DataGridViewCellStyle dataGridViewCellStyle =
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: false);
2332
DataGridViewCellStyle dataGridViewCellStyle =
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: false);
2721
DataGridViewCellStyle dataGridViewCellStyle =
GetInheritedStyle
(inheritedCellStyle: null, rowIndex, includeColors: false);
2741
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));