PageRenderTime 36ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 0ms

/src/NUnit/UiException/ITextManager.cs

#
C# | 42 lines | 13 code | 5 blank | 24 comment | 0 complexity | 553220396a90224d0edb22480b8adbe0 MD5 | raw file
Possible License(s): GPL-2.0
  1. // ****************************************************************
  2. // This is free software licensed under the NUnit license. You may
  3. // obtain a copy of the license at http://nunit.org
  4. // ****************************************************************
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Text;
  8. namespace NUnit.UiException
  9. {
  10. /// <summary>
  11. /// Provides an abstract way to manipulate a text as a whole and as separate
  12. /// sequences that can randomly be accessed one line at a time.
  13. /// </summary>
  14. public interface ITextManager
  15. {
  16. /// <summary>
  17. /// Gets the number of line in text managed by this object.
  18. /// </summary>
  19. int LineCount { get; }
  20. /// <summary>
  21. /// Gets the character count of the longest line in the text managed
  22. /// by this object.
  23. /// </summary>
  24. int MaxLength { get; }
  25. /// <summary>
  26. /// Gets the complete text managed by this object.
  27. /// </summary>
  28. string Text { get; }
  29. /// <summary>
  30. /// Gets a string filled with all characters in the line
  31. /// at the specified startingPosition without the trailing '\r\n' characters.
  32. /// </summary>
  33. /// <param name="lineIndex"></param>
  34. /// <returns></returns>
  35. string GetTextAt(int lineIndex);
  36. }
  37. }