ListViewRowEventArgs.cs 658 B

123456789101112131415161718192021222324252627
  1. using System;
  2. namespace Terminal.Gui {
  3. /// <summary>
  4. /// <see cref="EventArgs"/> used by the <see cref="ListView.RowRender"/> event.
  5. /// </summary>
  6. public class ListViewRowEventArgs : EventArgs {
  7. /// <summary>
  8. /// The current row being rendered.
  9. /// </summary>
  10. public int Row { get; }
  11. /// <summary>
  12. /// The <see cref="Attribute"/> used by current row or
  13. /// null to maintain the current attribute.
  14. /// </summary>
  15. public Attribute? RowAttribute { get; set; }
  16. /// <summary>
  17. /// Initializes with the current row.
  18. /// </summary>
  19. /// <param name="row"></param>
  20. public ListViewRowEventArgs (int row)
  21. {
  22. Row = row;
  23. }
  24. }
  25. }