Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TextEdit.Text Property

Gets or sets the text displayed in the edit box.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Appearance")]
[Bindable(true)]
[Browsable(true)]
public override string Text { get; set; }

#Property Value

Type Description
String

A String value which specifies the editor’s text.

#Remarks

The Text property’s value is the text actually displayed by the editor.

Setting this property to a new value raises the BaseEdit.ParseEditValue event so that you can manually specify how the assigned value should be converted to the actual edit value. The BaseEdit.EditValueChanging event (which is raised before the actual edit value is changed) can be used to prevent the editor from changing its value. After the actual edit value has been changed the BaseEdit.EditValueChanged event is raised.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Text property.

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.

See Also