ContentsChangedEventArgs.cs 953 B

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