コード例 #1
0
ファイル: Direct2D1Platform.cs プロジェクト: yahiheb/Avalonia
 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));
 }
コード例 #2
0
ファイル: Extensions.cs プロジェクト: justeddy87/CSharpMath
 internal static CSharpMathTextAlignment ToCSharpMathTextAlignment(this AvaloniaTextAlignment alignment) =>
 alignment switch
 {