Xamarin / monotouch UILabel multi-line

I am trying to add multi-line form code to UILabel. After reading some questions, it seems you need to add the following:

textLabel.lineBreakMode = NSLineBreakByWordWrapping; textLabel.numberOfLines = 0; 

The problem is that I do not see it available in monaural.

Does anyone know how to do this in monophonic mode?

Thanks!

+7
source share
1 answer

What you are looking for is perhaps the LineBreakMode property in UILabel, which takes the UILineBreakMode enumeration value. So something like this:

 textLabel.LineBreakMode = UILineBreakMode.WordWrap; textLabel.Lines = 0; 
+12
source

All Articles