TextEdit Class
The single-line text editor.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v19.2.dll
Declaration
[DefaultBindingPropertyEx("Text")]
[ToolboxBitmap(typeof(ToolboxIconsRootNS), "TextEdit")]
public class TextEdit :
BaseEdit,
IDXMenuSupport,
IMouseWheelSupport
Related API Members
The following members return TextEdit objects:
Remarks
The TextEdit.Properties property provides access to the RepositoryItemTextEdit object - a repository item that stores editor settings.
The image below shows a sample text edit.
The following table enumerates main TextEdit API:
Description | API |
---|---|
Editor text | |
Character casing (normal, uppercase, or lowercase) | |
Maximum text length | |
Default text shown when the editor is empty | RepositoryItem.NullText |
Methods that manage the caret’s position and text selection | TextEdit.SelectionStart |
Clipboard operations | |
Shortcuts | LEFT or UP arrow - moves the caret forward |
Editors derived from the TextEdit class have the same features. You can modify the TextEditStyle property (for instance, RepositoryItemButtonEdit.TextEditStyle) to disable or hide the text box and prevent users from entering values.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TextEdit class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.