Label Font Size

Silly question… how do you set the font size of a label?

Var f As iOSFont = iOSFont.SystemFont(60)
me.TextFont.Size = f.Size

I usually do it quite similar, i.e., not only setting the size but setting font name and size at the same time:

var f as new font("Arial", 60)
me.TextFont = f

Probably works similiar with the system font.

iOSFont and Font classes are immutable.
You need to create a new instance to change any value.

1 Like