Reputation: 2803
I've got a TextBlock that I'm displaying on a Canvas, that displays user entered text.
I'd like to get the content of this TextBlock, but I need to get it in such a way that I know where the linebreaks occur, for example:
From this displayed Textblock, how can I get the text and know where the line breaks are?
Also, this is a Windows Store App, so the full .NET framework is not available..
Upvotes: 2
Views: 207
Reputation: 359
As far I know there is no way to retrieve such information from TextBlock
, however you could try folowing:
TextBlock
widthFormattedText
class)TextBlock
widthUpvotes: 2