ContentsChangedEventArgs.cs 958 B

1234567891011121314151617181920212223242526272829303132
  1. // TextView.cs: multi-line text editing
  2. using System;
  3. namespace Terminal.Gui {
  4. /// <summary>
  5. /// Event arguments for events for when the contents of the TextView change. E.g. the <see cref="TextView.ContentsChanged"/> event.
  6. /// </summary>
  7. public class ContentsChangedEventArgs : EventArgs {
  8. /// <summary>
  9. /// Creates a new <see cref="TextView.ContentsChanged"/> instance.
  10. /// </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>
  19. ///
  20. /// Contains the row where the change occurred.
  21. /// </summary>
  22. public int Row { get; private set; }
  23. /// <summary>
  24. /// Contains the column where the change occurred.
  25. /// </summary>
  26. public int Col { get; private set; }
  27. }
  28. }