xtd 0.2.0
Loading...
Searching...
No Matches

◆ accepts_return() [2/2]

virtual text_box & xtd::forms::text_box::accepts_return ( bool  value)
virtual

Sets a value indicating whether pressing ENTER in a multiline text_box control creates a new line of text in the control or activates the default button for the form.

Parameters
valuetrue if the ENTER key creates a new line of text in a multiline version of the control; false if the ENTER key activates the default button for the form. The default is false.
Returns
Current text_box instance.
Remarks
If the value of this property is false, the user must press CTRL+ENTER to create a new line in a multiline text_box control. If there is no default button for the form, the ENTER key will always create a new line of text in the control, regardless of the value of this property.