AcceptsReturn

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets a value that determines whether a text box accepts newline and carriage-return characters.

<TextBox AcceptsReturn="bool" .../>
value = object.AcceptsReturn
object.AcceptsReturn = value

Property Value

Type: Boolean

true if the text box accepts newline characters; otherwise, false.

This property is read/write. The default value is false.

Managed Equivalent

AcceptsReturn

Remarks

When AcceptsReturn is true, newline and carriage-return characters result in a newline applied to the displayed text.

Applies To

TextBox

Version Information

Silverlight 2