CellToggledEventArgs.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. namespace Terminal.Gui;
  2. /// <summary>Event args for the <see cref="TableView.CellToggled"/> event.</summary>
  3. public class CellToggledEventArgs : EventArgs
  4. {
  5. /// <summary>Creates a new instance of arguments describing a cell being toggled in <see cref="TableView"/></summary>
  6. /// <param name="t"></param>
  7. /// <param name="col"></param>
  8. /// <param name="row"></param>
  9. public CellToggledEventArgs (ITableSource t, int col, int row)
  10. {
  11. Table = t;
  12. Col = col;
  13. Row = row;
  14. }
  15. /// <summary>Gets or sets whether to cancel the processing of this event</summary>
  16. public bool Cancel { get; set; }
  17. /// <summary>The column index of the <see cref="Table"/> cell that is being toggled</summary>
  18. /// <value></value>
  19. public int Col { get; }
  20. /// <summary>The row index of the <see cref="Table"/> cell that is being toggled</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. }