Xceed DataGrid for WPF v7.2 Documentation
RejectInputOnFirstFailure Property


Xceed.Wpf.Controls Assembly > Xceed.Wpf.Controls Namespace > MaskedTextBox Class : RejectInputOnFirstFailure Property
Gets or sets a value indicating if inputted text that is pasted into the masked text box can be rejected if it contains an invalid character for the corresponding mask position.
Syntax
'Declaration
 
Public Property RejectInputOnFirstFailure As Boolean
'Usage
 
Dim instance As MaskedTextBox
Dim value As Boolean
 
instance.RejectInputOnFirstFailure = value
 
value = instance.RejectInputOnFirstFailure
public bool RejectInputOnFirstFailure {get; set;}

Property Value

true if inputted text that is pasted into the masked text box can be rejected if it contains an invalid character for the corresponding mask position; false if text text should be accepted anyway. By default, true.
Requirements

Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

MaskedTextBox Class
MaskedTextBox Members