DataGridViewRow.DataGridViewRowAccessibleObject.GetChild(Int32) 方法

定义

返回对应于指定索引的辅助性子级。

C#
public override System.Windows.Forms.AccessibleObject GetChild(int index);
C#
public override System.Windows.Forms.AccessibleObject? GetChild(int index);

参数

index
Int32

可访问子级的从零开始的索引。

返回

DataGridViewCell.DataGridViewCellAccessibleObject,它表示与指定索引对应的 DataGridViewCell

例外

index 小于 0。

- 或 -

Owner 属性的值为 null

适用于

产品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

另请参阅