ContentsChangedEventArgs.cs 929 B

12345678910111213141516171819202122232425
  1. // TextView.cs: multi-line text editing
  2. namespace Terminal.Gui;
  3. /// <summary>
  4. /// Event arguments for events for when the contents of the TextView change. E.g. the
  5. /// <see cref="TextView.ContentsChanged"/> event.
  6. /// </summary>
  7. public class ContentsChangedEventArgs : EventArgs
  8. {
  9. /// <summary>Creates a new <see cref="TextView.ContentsChanged"/> instance.</summary>
  10. /// <param name="currentRow">Contains the row where the change occurred.</param>
  11. /// <param name="currentColumn">Contains the column where the change occured.</param>
  12. public ContentsChangedEventArgs (int currentRow, int currentColumn)
  13. {
  14. Row = currentRow;
  15. Col = currentColumn;
  16. }
  17. /// <summary>Contains the column where the change occurred.</summary>
  18. public int Col { get; private set; }
  19. /// <summary>Contains the row where the change occurred.</summary>
  20. public int Row { get; private set; }
  21. }