DataGridViewCell.DataGridViewCellAccessibleObject.GetChildCount 方法

定義

傳回屬於 DataGridViewCell.DataGridViewCellAccessibleObject 的子系數目。

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

傳回

如果目前正在編輯擁有 DataGridViewCell.DataGridViewCellAccessibleObjectDataGridViewCell,則這個值會是 1;否則為 -1。

例外狀況

Owner 屬性的值是 null

適用於

另請參閱