Skip to main content

TextEdit Class

Represents a text editor.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v14.2.dll

#Declaration

[DXToolboxBrowsable(DXToolboxItemKind.Free)]
public class TextEdit :
    TextEditBase

#Remarks

By default, the TextEdit represents a single-line text editor.

To enable multi-line editing, set the TextEditBase.TextWrapping property to 'Wrap'. To allow an end-user to insert return characters into a text, set the TextEditBase.AcceptsReturn property to true.

TextEdit

The editor's value can be specified using the BaseEdit.EditValue or TextEditBase.Text property. To respond to changing the editor's value, handle the BaseEdit.EditValueChanged event. To check the new value's validity, handle the BaseEdit.Validate event. To learn more, see Input Validation.

The TextEdit allows you to use masks during editing. To learn more, see Masked Input.

See Also