TextChangedEventArgs.cs 603 B

12345678910111213141516171819
  1. //
  2. // TextField.cs: single-line text editor with Emacs keybindings
  3. //
  4. // Authors:
  5. // Miguel de Icaza ([email protected])
  6. //
  7. namespace Terminal.Gui;
  8. /// <summary>Event args for the <see cref="TextField.TextChanged"/> event</summary>
  9. public class TextChangedEventArgs : EventArgs
  10. {
  11. /// <summary>Creates a new instance of the <see cref="TextChangedEventArgs"/> class</summary>
  12. /// <param name="oldValue"></param>
  13. public TextChangedEventArgs (string oldValue) { OldValue = oldValue; }
  14. /// <summary>The old value before the text changed</summary>
  15. public string OldValue { get; }
  16. }