Ejemplo n.º 1
0
 public IFormattedTextImpl CreateFormattedText(
     string text,
     Typeface typeface,
     double fontSize,
     TextAlignment textAlignment,
     TextWrapping wrapping,
     Size constraint,
     IReadOnlyList <FormattedTextStyleSpan> spans)
 {
     return(new FormattedTextImpl(
                text,
                typeface,
                fontSize,
                textAlignment,
                wrapping,
                constraint,
                spans));
 }
Ejemplo n.º 2
0
 internal static CSharpMathTextAlignment ToCSharpMathTextAlignment(this AvaloniaTextAlignment alignment) =>
 alignment switch
 {