For the complete documentation index, see llms.txt. This page is also available as Markdown.

MaxWidth

Introduction

The MaxWidth value controls the available area that the Text object can render text inside. The Text object will either wrap or clamp text according to its MaxWidthBehavior.

Code Example

 Text text = TextManager.AddText("");
 text.DisplayText = "Hello, I am some really long text that will wrap";
 text.MaxWidth = 60;
 text.MaxWidthBehavior = MaxWidthBehavior.Wrap;
WrappingText.PNG

Last updated

Was this helpful?