CellActivatedEventArgs.cs 1.1 KB

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