MultiLine

[property icon] MultiLine

Wraps the text to multiple lines if the string is too long to fit on a single line

Read-only This is a style property that is only available in the forms designer. It is possible to modify this programmatically through the Style property in the Create event.

Applies to: Button , Edit , Picture Button


>

MultiLine

This property is used to enable multiline text on edit and push button controls. Normally text on push buttons is centered and any text that cannot fit onto the button face is automatically truncated, setting this property to TRUE will automatically wrap the text onto multiple lines. This property is most useful when writing multilingual applications as it means that words that wouldn't normally fit within the button space are automatically wrapped. However, you should make sure that the button is large enough for any wrapped text.

If set to TRUE for an edit control, the control will allow multiples lines of word wrapped text to be entered. If FALSE then the control will only allow a single line to be entered.

This property is a design time only property that has no effect if changed under program control.

See also

Button methods, properties and events. Edit methods, properties and events. Picture Button methods, properties and events.