RowColorGetterArgs.cs 635 B

123456789101112131415161718192021222324
  1. namespace Terminal.Gui;
  2. /// <summary>
  3. /// Arguments for <see cref="RowColorGetterDelegate"/>. Describes a row of data in a <see cref="ITableSource"/>
  4. /// for which <see cref="ColorScheme"/> is sought.
  5. /// </summary>
  6. public class RowColorGetterArgs {
  7. /// <summary>
  8. /// The data table hosted by the <see cref="TableView"/> control.
  9. /// </summary>
  10. public ITableSource Table { get; }
  11. /// <summary>
  12. /// The index of the row in <see cref="Table"/> for which color is needed
  13. /// </summary>
  14. public int RowIndex { get; }
  15. internal RowColorGetterArgs (ITableSource table, int rowIdx)
  16. {
  17. Table = table;
  18. RowIndex = rowIdx;
  19. }
  20. }