Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Removes a row by reference.
 /// </summary>
 /// <param name="row">Row to remove.</param>
 public void RemoveRow(TableRow row)
 {
     RemoveChild(row, true);
 }
Ejemplo n.º 4
0
 /// <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;
 }