Quantcast
Channel: How to add new line in FormattedString - Stack Overflow
Viewing all articles
Browse latest Browse all 5

Answer by Giorgi for How to add new line in FormattedString

$
0
0

You can use Environment.NewLine to move text to the next line like this:

   public FormattedString FormattedDescription   {       get       {           return new FormattedString           {                Spans = {                            new Span { Text = RoleName, FontSize = 16, FontAttributes = FontAttributes.Bold },                            new Span { Text = Environment.NewLine, FontSize = 16 },                            new Span { Text = "/ "+ ProjectRoleID +"/ "+Part +"/ "+Gender +"/ "+ AgeRange},                        }           };       }       set { }     }

Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>