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

◆ accepts_return() [1/2]

virtual bool xtd::forms::text_box::accepts_return ( ) const
virtualnoexcept

Gets 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.

Returns
true 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.
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.