Skip to content



Below is a list of the most important properties methods and events for the TWebMemo. TWebMemo is a multiline editable control, similar to a VCL TMemo. It is based on the HTML TEXTAREA element.

Designtime Runtime

HTML template tag

The HTML tag the component can be associated with in an HTML template. Assign the ID attribute with a unique value and set the identical value to the ElementID property. Detailed information can be found in the Use of HTML templates topic.

HTML tag <DIV ID=”UniqueID”></DIV>
ElementID UniqueID

Properties for TWebMemo

Property Description
AutoSize When true, the size of the control will automatically adapt to the text in the memo
BorderStyle Sets the border style of the control
ElementClassName Optionally sets the CSS classname for the label when styling via CSS is used
ElementID Optionally sets the HTML element ID for a HTML element in the form HTML file the label needs to be connected with. When connected, no new label is created but the Delphi class is connected with the existing HTML element in the form HTML file
Lines: TStrings Access to the content of the memo via a TStringList property
Modified: Boolean Property that returns true when the memo content was changed through editing
SelLength: Integer Gets or sets the length of the selection in the memo
SelStart: Integer Gets or sets the selection starting point in the memo
ShowFocus: Boolean When true, the border color changes when the control has focus
SpellCheck: Boolean When false, the browser built-in spell checking is not applied to the memo. Default it is on.
TabOrder Sets the tab order of the control
TabStop When true, the focus is turned to the control when pressing tab
TextDirection Sets the text direction to
tdDefault: does not use direction attribute
tdInherit: uses TextDirection of parent control
tdRightToLeft: uses rtl direction attribute
tdLeftToRight: uses ltr direction attribute

Methods for TWebMemo

Property Description
Clear Removes text from the memo
ClearSelection Removes the selected text from the memo
CopyToClipboard Copies all text of the memo control to the clipboard
SelectAll Selects all text in the memo control

Events for TWebMemo

Property Description
OnChange Event triggered when the content of the memo changes
OnClick Event triggered when the memo is clicked
OnDblClick Event triggered when the memo is double-clicked