NullFormattedTextImpl.cs 841 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.Generic;
  3. using Avalonia.Media;
  4. using Avalonia.Platform;
  5. namespace Avalonia.Benchmarks
  6. {
  7. internal class NullFormattedTextImpl : IFormattedTextImpl
  8. {
  9. public Size Constraint { get; }
  10. public Rect Bounds { get; }
  11. public string Text { get; }
  12. public IEnumerable<FormattedTextLine> GetLines()
  13. {
  14. throw new NotImplementedException();
  15. }
  16. public TextHitTestResult HitTestPoint(Point point)
  17. {
  18. throw new NotImplementedException();
  19. }
  20. public Rect HitTestTextPosition(int index)
  21. {
  22. throw new NotImplementedException();
  23. }
  24. public IEnumerable<Rect> HitTestTextRange(int index, int length)
  25. {
  26. throw new NotImplementedException();
  27. }
  28. }
  29. }