How to tell how much text is displayed in a multiline label

Patrick MacDonald 5 Reputation points
2024-01-12T14:39:25.3166667+00:00

If I have a multiline label and I programmatically fill it with characters, how can I tell when I put the last displayable character in the label? I can keep adding characters but they won't be visible. So how can I figure out when to stop adding characters. Or how can I compute how many characters will fit on the visible portion of the label?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,919 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.