Exemplo n.º 1
0
 private static void FormatText(TextElement text, TokenType tokenType)
 {
     if (tokenType == TokenType.WordForm)
     {
         FlowDocumentStyles.FormatWordForm(text);
     }
     else if (tokenType == TokenType.Example)
     {
         FlowDocumentStyles.FormatExample(text);
     }
     else
     {
         FlowDocumentStyles.FormatTranslation(text);
     }
 }