예제 #1
0
파일: Table.cs 프로젝트: tritao/flood
 /// <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;
 }
예제 #2
0
파일: Table.cs 프로젝트: tritao/flood
 /// <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);
 }
예제 #3
0
파일: Table.cs 프로젝트: tritao/flood
 /// <summary>
 /// Removes a row by reference.
 /// </summary>
 /// <param name="row">Row to remove.</param>
 public void RemoveRow(TableRow row)
 {
     RemoveChild(row, true);
 }
예제 #4
0
파일: Table.cs 프로젝트: tritao/flood
 /// <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;
 }