Show: Delphi C++
Display Preferences

Vcl.StdCtrls.TCustomMemo.WordWrap

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property WordWrap: Boolean read FWordWrap write SetWordWrap default True;

C++

__property bool WordWrap = {read=FWordWrap, write=SetWordWrap, default=1};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomMemo

Description

Determines whether the edit control inserts soft carriage returns so that the text wraps at the right margin.

Set WordWrap to true to make the edit control wrap text at the right margin so that it fits in the client area. The wrapping has cosmetic purposes only. The text does not include any return characters that were not explicitly entered. Set WordWrap to false to have the edit control display a separate line only where return characters were explicitly entered into the text.

Note: Most of the times when WordWrap is true, the horizontal scroll bar is not necessary. However, exceptions appear; when the line cannot be cut into pieces, the wrapping cannot occur. In these cases, the scroll bar is still required.

See Also


Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance