Skip to main content

ValidationEventArgs.Value Property

Gets the editor's new value.

Namespace: DevExpress.Xpf.Editors

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

#Declaration

public object Value { get; }

#Property Value

Type Description
Object

An object that represents the editor's new value.

#Remarks

Use the Value property to obtain the value entered by an end-user. The Value property returns a null reference if the editor's value has not been changed.

NOTE

The Value property is set to the last changed property value (e.g. for TextEdit, these are the TextEditBase.Text and BaseEdit.EditValue properties).

If the Value property meets your validation rules, leave the ValidationEventArgs.IsValid property set to true. Otherwise, if the Value property's value is invalid, set the ValidationEventArgs.IsValid property to false. The error type and description can be specified using the ValidationEventArgs.ErrorType and ValidationEventArgs.ErrorContent properties, respectively.

See Also