DataGridViewRow.DataGridViewRowAccessibleObject.GetChildCount DataGridViewRow.DataGridViewRowAccessibleObject.GetChildCount DataGridViewRow.DataGridViewRowAccessibleObject.GetChildCount DataGridViewRow.DataGridViewRowAccessibleObject.GetChildCount Method

定义

返回属于辅助性对象的子对象的数量。Returns the number of children belonging to the accessible object.

public:
 override int GetChildCount();
public override int GetChildCount ();
override this.GetChildCount : unit -> int
Public Overrides Function GetChildCount () As Integer

返回

属于 DataGridViewRow.DataGridViewRowAccessibleObject 的子级辅助性对象的数目与 DataGridView 中可视列的数目相对应。The number of child accessible objects that belong to the DataGridViewRow.DataGridViewRowAccessibleObject corresponds to the number of visible columns in the DataGridView. 如果 RowHeadersVisible 属性是 true,则 GetChildCount() 方法将 DataGridViewRowHeaderCell 计入子级辅助性对象的计数中。If the RowHeadersVisible property is true, the GetChildCount() method includes the DataGridViewRowHeaderCell in the count of child accessible objects.

异常

适用于

另请参阅