TextEditingLineStatus.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /// <summary>
  2. /// Represents the status of a line during text editing operations in a <see cref="TextView"/>.
  3. /// </summary>
  4. /// <remarks>
  5. /// This enum is used to track changes to text lines in the <see cref="HistoryText"/> class, enabling undo/redo
  6. /// functionality
  7. /// and maintaining the state of text modifications. Each value describes a specific type of change or state for a
  8. /// line.
  9. /// </remarks>
  10. // ReSharper disable once CheckNamespace
  11. #nullable disable
  12. public enum TextEditingLineStatus
  13. {
  14. /// <summary>
  15. /// Indicates that the line is in its original, unmodified state.
  16. /// </summary>
  17. Original,
  18. /// <summary>
  19. /// Indicates that the line has been replaced with new content.
  20. /// </summary>
  21. Replaced,
  22. /// <summary>
  23. /// Indicates that the line has been removed.
  24. /// </summary>
  25. Removed,
  26. /// <summary>
  27. /// Indicates that a new line has been added.
  28. /// </summary>
  29. Added,
  30. /// <summary>
  31. /// Indicates that the line's attributes (e.g., formatting or styling) have been modified.
  32. /// </summary>
  33. Attribute
  34. }