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

BaseEdit.DisplayText Property

Gets the text displayed within the editor. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public string DisplayText { get; }

#Property Value

Type Description
String

A String value that specifies the editor’s display text.

#Remarks

By default, the text displayed within the editor is specified by the Text property. The BaseEdit.DisplayFormatString property can be used to format it (e.g. to display a currency amount).

It is also possible to display a custom text within the editor. To do this, the BaseEdit.CustomDisplayText event should be handled.

The DisplayText property returns the string currently displayed within the editor.

See Also