TextEditingLineStatus.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. public enum TextEditingLineStatus
  12. {
  13. /// <summary>
  14. /// Indicates that the line is in its original, unmodified state.
  15. /// </summary>
  16. Original,
  17. /// <summary>
  18. /// Indicates that the line has been replaced with new content.
  19. /// </summary>
  20. Replaced,
  21. /// <summary>
  22. /// Indicates that the line has been removed.
  23. /// </summary>
  24. Removed,
  25. /// <summary>
  26. /// Indicates that a new line has been added.
  27. /// </summary>
  28. Added,
  29. /// <summary>
  30. /// Indicates that the line's attributes (e.g., formatting or styling) have been modified.
  31. /// </summary>
  32. Attribute
  33. }