Skip to main content

TextEdit.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.WinUI.Editors

Assembly: DevExpress.WinUI.Editors.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP("", Handler = "OnNullTextOrValueChanged")]
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 value.

Remarks

Use the NullText property to specify the text displayed within the edit box when the editor’s value is null. Its visibility is specified by the TextEdit.ShowNullText property.

The following code sample specifies the TextEdit‘s NullText and Header.

<dxe:TextEdit Header="Last Name" NullText="Last Name" />
See Also