2
0

CellActivatedEventArgs.cs 1.1 KB

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