/// <summary> /// Adds a new empty row. /// </summary> /// <returns>Newly created row.</returns> public TableRow AddRow() { TableRow row = new TableRow(this); row.ColumnCount = m_ColumnCount; row.Height = m_DefaultRowHeight; row.Dock = Pos.Top; return row; }
/// <summary> /// Gets the index of a specified row. /// </summary> /// <param name="row">Row to search for.</param> /// <returns>Row index if found, -1 otherwise.</returns> public int GetRowIndex(TableRow row) { return Children.IndexOf(row); }
/// <summary> /// Removes a row by reference. /// </summary> /// <param name="row">Row to remove.</param> public void RemoveRow(TableRow row) { RemoveChild(row, true); }
/// <summary> /// Adds a new row. /// </summary> /// <param name="row">Row to add.</param> public void AddRow(TableRow row) { row.Parent = this; row.ColumnCount = m_ColumnCount; row.Height = m_DefaultRowHeight; row.Dock = Pos.Top; }