Share via


RichEditBox.AcceptsReturn Property

Definition

Gets or sets a value that indicates whether the RichEditBox allows and displays the newline or return characters when the ENTER or RETURN keys are pressed.

public:
 property bool AcceptsReturn { bool get(); void set(bool value); };
bool AcceptsReturn();

void AcceptsReturn(bool value);
public bool AcceptsReturn { get; set; }
var boolean = richEditBox.acceptsReturn;
richEditBox.acceptsReturn = boolean;
Public Property AcceptsReturn As Boolean
<RichEditBox AcceptsReturn="bool"/>

Property Value

Boolean

bool

True if the RichEditBox allows newline characters; otherwise, false. The default is true.

Applies to