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