Skip to main content

BaseEdit.NullText Property

Gets or sets the text displayed within the edit box when the editor’s value is null. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

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

NuGet Package: DevExpress.Wpf.Core

Declaration

public string NullText { get; set; }

Property Value

Type Description
String

A String value that specifies the string displayed within the edit box when the BaseEdit.EditValue property is set to null or Value value.

Remarks

The BaseEdit.NullValue property allows you to specify a null value for the editor, in addition to null and DBNull values.

To specify the text displayed within the edit box when the editor’s value is null, use the NullText property. Its visibility is specified by the BaseEdit.ShowNullText property.

<dxe:PasswordBoxEdit NullText="Please enter your password..." />

PasswordBox_NullText

Use the TextEditBase.NullTextForeground property to change the null text’s foreground color.

The following code snippets (auto-collected from DevExpress Examples) contain references to the NullText 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