2 types derived from DataGridViewRowHeaderCell
System.Windows.Forms.Tests (2)
System\Windows\Forms\AccessibleObjects\DataGridViewRowHeaderCellAccessibleObjectTests.cs (1)
11public class DataGridViewRowHeaderCellAccessibleObjectTests : DataGridViewRowHeaderCell
System\Windows\Forms\DataGridViewHeaderCellTests.cs (1)
4664private class SubDataGridViewRowHeaderCell : DataGridViewRowHeaderCell
39 instantiations of DataGridViewRowHeaderCell
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
58dataGridViewCell = new DataGridViewRowHeaderCell();
System.Windows.Forms.Tests (38)
System\Windows\Forms\AccessibleObjects\DataGridViewRowHeaderCellAccessibleObjectTests.cs (1)
155DataGridViewRowHeaderCellAccessibleObject accessibleObject = new(new());
System\Windows\Forms\DataGridViewHeaderCellTests.cs (27)
74using DataGridViewRowHeaderCell cell = new(); 180using DataGridViewRowHeaderCell cell = new(); 356using DataGridViewRowHeaderCell cell = new(); 581using DataGridViewRowHeaderCell cell = new(); 652using DataGridViewRowHeaderCell cell = new(); 744using DataGridViewRowHeaderCell cell = new(); 790using DataGridViewRowHeaderCell cell = new(); 886using DataGridViewRowHeaderCell cell = new(); 966using DataGridViewRowHeaderCell cell = new(); 1092using DataGridViewRowHeaderCell cell = new(); 1145using DataGridViewRowHeaderCell cell = new(); 1229using DataGridViewRowHeaderCell cell = new(); 1278using DataGridViewRowHeaderCell cell = new(); 1351using DataGridViewRowHeaderCell cell = new(); 1399using DataGridViewRowHeaderCell cell = new(); 1529using DataGridViewRowHeaderCell cell = new(); 1547using DataGridViewRowHeaderCell cell = new() 1671using DataGridViewRowHeaderCell cell = new(); 1700using DataGridViewRowHeaderCell cell = new(); 1859using DataGridViewRowHeaderCell cell = new(); 1939using DataGridViewRowHeaderCell cell = new(); 2579using DataGridViewRowHeaderCell cell = new(); 2605using DataGridViewRowHeaderCell cell = new(); 2808using DataGridViewRowHeaderCell cell = new(); 2844using DataGridViewRowHeaderCell cell = new(); 3025using DataGridViewRowHeaderCell cell = new(); 3073using DataGridViewRowHeaderCell cell = new();
System\Windows\Forms\DataGridViewRowTests.cs (10)
1470yield return new object[] { new DataGridViewRowHeaderCell() }; 1510using DataGridViewRowHeaderCell oldValue = new(); 1545using DataGridViewRowHeaderCell value = new(); 1612using DataGridViewRowHeaderCell oldValue = new(); 1689using DataGridViewRowHeaderCell oldValue = new(); 1739using DataGridViewRowHeaderCell cell1 = new(); 1750using DataGridViewRowHeaderCell cell2 = new(); 3927using DataGridViewRowHeaderCell cell = new(); 3970using DataGridViewRowHeaderCell cell = new(); 4013using DataGridViewRowHeaderCell cell = new();
93 references to DataGridViewRowHeaderCell
System.Windows.Forms (12)
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (2)
125return IsRow ? typeof(DataGridViewRowHeaderCell) : typeof(DataGridViewColumnHeaderCell); 282if (value is not DataGridViewRowHeaderCell)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
992Debug.Assert(this is DataGridViewRowHeaderCell);
System\Windows\Forms\Controls\DataGridView\DataGridViewElement.cs (1)
30GetType() == typeof(DataGridViewRowHeaderCell) || GetType() == typeof(DataGridViewImageCell) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (3)
204public DataGridViewRowHeaderCell HeaderCell 206get => (DataGridViewRowHeaderCell)HeaderCellCore; 1066dataGridViewRow.HeaderCell = (DataGridViewRowHeaderCell)HeaderCell.Clone();
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (3)
24private static readonly Type s_cellType = typeof(DataGridViewRowHeaderCell); 53DataGridViewRowHeaderCell dataGridViewCell; 62dataGridViewCell = (DataGridViewRowHeaderCell)Activator.CreateInstance(thisType)!;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (2)
14public DataGridViewRowHeaderCellAccessibleObject(DataGridViewRowHeaderCell? owner) : base(owner) 212if (Owner is not DataGridViewRowHeaderCell dataGridViewCell)
System.Windows.Forms.Tests (81)
System\Windows\Forms\AccessibleObjects\DataGridViewRowHeaderCellAccessibleObjectTests.cs (3)
31DataGridViewRowHeaderCell cell = control.Rows[0].HeaderCell; 94DataGridViewRowHeaderCell cell = control.Rows[0].HeaderCell; 114DataGridViewRowHeaderCell cell = control.Rows[0].HeaderCell;
System\Windows\Forms\DataGridViewColumnTests.cs (7)
917yield return new object[] { typeof(DataGridViewRowHeaderCell), typeof(DataGridViewRowHeaderCell) }; 937[InlineData(typeof(DataGridViewRowHeaderCell))] 944DefaultHeaderCellType = typeof(DataGridViewRowHeaderCell) 975[InlineData(typeof(DataGridViewRowHeaderCell))] 987column.DefaultHeaderCellType = typeof(DataGridViewRowHeaderCell); 1011DefaultHeaderCellType = typeof(DataGridViewRowHeaderCell)
System\Windows\Forms\DataGridViewElementTests.cs (1)
375type == typeof(DataGridViewTopLeftHeaderCell) || type == typeof(DataGridViewRowHeaderCell) ||
System\Windows\Forms\DataGridViewHeaderCellTests.cs (27)
74using DataGridViewRowHeaderCell cell = new(); 180using DataGridViewRowHeaderCell cell = new(); 356using DataGridViewRowHeaderCell cell = new(); 581using DataGridViewRowHeaderCell cell = new(); 652using DataGridViewRowHeaderCell cell = new(); 744using DataGridViewRowHeaderCell cell = new(); 790using DataGridViewRowHeaderCell cell = new(); 886using DataGridViewRowHeaderCell cell = new(); 966using DataGridViewRowHeaderCell cell = new(); 1092using DataGridViewRowHeaderCell cell = new(); 1145using DataGridViewRowHeaderCell cell = new(); 1229using DataGridViewRowHeaderCell cell = new(); 1278using DataGridViewRowHeaderCell cell = new(); 1351using DataGridViewRowHeaderCell cell = new(); 1399using DataGridViewRowHeaderCell cell = new(); 1529using DataGridViewRowHeaderCell cell = new(); 1547using DataGridViewRowHeaderCell cell = new() 1671using DataGridViewRowHeaderCell cell = new(); 1700using DataGridViewRowHeaderCell cell = new(); 1859using DataGridViewRowHeaderCell cell = new(); 1939using DataGridViewRowHeaderCell cell = new(); 2579using DataGridViewRowHeaderCell cell = new(); 2605using DataGridViewRowHeaderCell cell = new(); 2808using DataGridViewRowHeaderCell cell = new(); 2844using DataGridViewRowHeaderCell cell = new(); 3025using DataGridViewRowHeaderCell cell = new(); 3073using DataGridViewRowHeaderCell cell = new();
System\Windows\Forms\DataGridViewRowTests.cs (43)
25Assert.Same(typeof(DataGridViewRowHeaderCell), row.DefaultHeaderCellType); 31Assert.IsType<DataGridViewRowHeaderCell>(row.HeaderCell); 33Assert.IsType<DataGridViewRowHeaderCell>(row.HeaderCellCore); 582Assert.Equal(typeof(DataGridViewRowHeaderCell), row.DefaultHeaderCellType); 594Assert.Equal(typeof(DataGridViewRowHeaderCell), row.DefaultHeaderCellType); 599yield return new object[] { null, typeof(DataGridViewRowHeaderCell) }; 600yield return new object[] { typeof(DataGridViewRowHeaderCell), typeof(DataGridViewRowHeaderCell) }; 620[InlineData(typeof(DataGridViewRowHeaderCell))] 627DefaultHeaderCellType = typeof(DataGridViewRowHeaderCell) 657[InlineData(typeof(DataGridViewRowHeaderCell))] 668row.DefaultHeaderCellType = typeof(DataGridViewRowHeaderCell); 698[InlineData(typeof(DataGridViewRowHeaderCell))] 709row.DefaultHeaderCellType = typeof(DataGridViewRowHeaderCell); 733DefaultHeaderCellType = typeof(DataGridViewRowHeaderCell) 1377Assert.IsType<DataGridViewRowHeaderCell>(row.HeaderCell); 1395Assert.IsType<DataGridViewRowHeaderCell>(row.HeaderCell); 1413Assert.IsType<DataGridViewRowHeaderCell>(row.HeaderCell); 1424Assert.IsType<DataGridViewRowHeaderCell>(row.HeaderCellCore); 1442Assert.IsType<DataGridViewRowHeaderCell>(row.HeaderCellCore); 1460Assert.IsType<DataGridViewRowHeaderCell>(row.HeaderCellCore); 1475public void DataGridViewRow_HeaderCell_Set_GetReturnsExpected(DataGridViewRowHeaderCell value) 1508public void DataGridViewRow_HeaderCell_SetNonNullOldValue_GetReturnsExpected(DataGridViewRowHeaderCell value) 1510using DataGridViewRowHeaderCell oldValue = new(); 1545using DataGridViewRowHeaderCell value = new(); 1567public void DataGridViewRow_HeaderCell_SetWithDataGridView_GetReturnsExpected(DataGridViewRowHeaderCell value) 1604public void DataGridViewRow_HeaderCell_SetWithDataGridViewNonNullOldValue_GetReturnsExpected(DataGridViewRowHeaderCell value) 1612using DataGridViewRowHeaderCell oldValue = new(); 1644public void DataGridViewRow_HeaderCell_SetShared_GetReturnsExpected(DataGridViewRowHeaderCell value) 1681public void DataGridViewRow_HeaderCell_SetSharedNonNullOldValue_GetReturnsExpected(DataGridViewRowHeaderCell value) 1689using DataGridViewRowHeaderCell oldValue = new(); 1739using DataGridViewRowHeaderCell cell1 = new(); 1750using DataGridViewRowHeaderCell cell2 = new(); 3909Assert.Equal(typeof(DataGridViewRowHeaderCell), row.DefaultHeaderCellType); 3927using DataGridViewRowHeaderCell cell = new(); 3932DefaultHeaderCellType = typeof(DataGridViewRowHeaderCell), 3948Assert.Equal(typeof(DataGridViewRowHeaderCell), row.DefaultHeaderCellType); 3970using DataGridViewRowHeaderCell cell = new(); 3975DefaultHeaderCellType = typeof(DataGridViewRowHeaderCell), 3991Assert.Equal(typeof(DataGridViewRowHeaderCell), row.DefaultHeaderCellType); 4013using DataGridViewRowHeaderCell cell = new(); 4022source.DefaultHeaderCellType = typeof(DataGridViewRowHeaderCell); 4040Assert.Equal(typeof(DataGridViewRowHeaderCell), row.DefaultHeaderCellType);