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.v20.1.dll

Declaration

public string NullText { get; set; }
Public Property NullText As String

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 Name="passwordBoxEdit1"
                     NullValue="" NullText="Please enter your password..." />

PasswordBox_NullText

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

Implements

DevExpress.Xpf.Editors.IBaseEdit.NullText
See Also