ChartDirector 7.0 (Python Edition)

TextBox.setMaxWidth


Usage

setMaxWidth(maxWidth)

Description

Sets the maximum width of the text box and wraps text if necessary.

By default, the width of the text box is automatically determined to be the length of the text. This method can be used to limit the width of the text box. If the text requires a longer width for display, it will be wrapped into multiple lines.

Arguments

ArgumentDefaultDescription
maxWidth(Mandatory)The maximum width of the text box in pixels.

Return Value

None