IHTMLTextAreaElement::wrap Property

Sets or retrieves how to handle wordwrapping in the object.

Syntax


HRESULT IHTMLTextAreaElement::get_wrap(BSTR *p);HRESULT IHTMLTextAreaElement::put_wrap(BSTR v);

Parameters

p
Pointer to a variable of type BSTR that receives one of the values listed in Possible Values.
v
BSTR that specifies one of the values listed in Possible Values.

Possible Values

soft Default. Text is displayed with wordwrapping and submitted without carriage returns and line feeds.
hard Text is displayed with wordwrapping and submitted with soft returns and line feeds.
off Wordwrapping is disabled. The lines appear exactly as the user types them.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

To detect the difference between soft and hard you must submit the content within the textArea to an HTTP server.

Community Additions

Show: