CellActivatedEventArgs.cs 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. namespace Terminal.Gui;
  2. /// <summary>Defines the event arguments for <see cref="TableView.CellActivated"/> event</summary>
  3. public class CellActivatedEventArgs : EventArgs
  4. {
  5. /// <summary>Creates a new instance of arguments describing a cell being activated in <see cref="TableView"/></summary>
  6. /// <param name="t"></param>
  7. /// <param name="col"></param>
  8. /// <param name="row"></param>
  9. public CellActivatedEventArgs (ITableSource t, int col, int row)
  10. {
  11. Table = t;
  12. Col = col;
  13. Row = row;
  14. }
  15. /// <summary>The column index of the <see cref="Table"/> cell that is being activated</summary>
  16. /// <value></value>
  17. public int Col { get; }
  18. /// <summary>The row index of the <see cref="Table"/> cell that is being activated</summary>
  19. /// <value></value>
  20. public int Row { get; }
  21. /// <summary>
  22. /// The current table to which the new indexes refer. May be null e.g. if selection change is the result of
  23. /// clearing the table from the view
  24. /// </summary>
  25. /// <value></value>
  26. public ITableSource Table { get; }
  27. }