dontWrap

Specifies whether the text in a paragraph or field word-wraps when it reaches the field's right edge.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

set the dontWrap [of line] of field to {true | false}

# Examples

set the dontWrap of field 1 to true

set the dontWrap of line 1 of field 1 to true

# Description

Use the dontWrap property to control whether lines of text in a field wrap or not.

By default, the dontWrap property of newly created fields is set to false.

If a field's dontWrap property is false, the text in the field wraps to the next line automatically when it reaches the right edge of the field, so all the text is visible in the field width.

If the dontWrap is true, lines that are too long to fit in the width of the field disappear off the right edge of the field. (The excess text is still in the field--it just can't be seen.) To edit long lines in a field whose dontWrap is true, set the field's hScrollbar to true to display a horizontal scrollbar.

>*Note:* The dontWrap property is always true for any field with the > listBehavior property set to true, setting the dontWrap to false on > such a field has no affect.

# Tags

ui,

# See