FormattedTextStyleSpan.cs 488 B

123456789101112131415161718192021
  1. using System;
  2. namespace Avalonia.Media
  3. {
  4. public class FormattedTextStyleSpan
  5. {
  6. public FormattedTextStyleSpan(
  7. int startIndex,
  8. int length,
  9. IBrush foregroundBrush = null)
  10. {
  11. StartIndex = startIndex;
  12. Length = length;
  13. ForegroundBrush = foregroundBrush;
  14. }
  15. public int StartIndex { get; }
  16. public int Length { get; }
  17. public IBrush ForegroundBrush { get; }
  18. }
  19. }