The NumberOfLines property returns the number of lines that the Text object will occupy when rendering. this value corresponds to the number of newline characters in the text object ('\n'). Newline characters can be added manually to the DisplayText property, by calling FlatRedBall.Graphics.Text.InsertNewLines, or automatically according to the Text's FlatRedBall.Graphics.Text.MaxWidthBehavior.

Last updated