ChartDirector 7.1 (.NET Edition)

TextBox.setMaxWidth


Usage

[C#]public void setMaxWidth(int maxWidth);
[VB]Public Sub setMaxWidth(maxWidth As Integer)

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