RowColorGetterArgs.cs 651 B

1234567891011121314151617181920
  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. {
  8. internal RowColorGetterArgs (ITableSource table, int rowIdx)
  9. {
  10. Table = table;
  11. RowIndex = rowIdx;
  12. }
  13. /// <summary>The index of the row in <see cref="Table"/> for which color is needed</summary>
  14. public int RowIndex { get; }
  15. /// <summary>The data table hosted by the <see cref="TableView"/> control.</summary>
  16. public ITableSource Table { get; }
  17. }