RowColorGetterArgs.cs 670 B

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