Returns a value indicating whether the specified text is valid for a specific barcode type. In case of an invalid text, an exception message is saved into the specified string.

IsTextValid(TXTextControl.Barcode.BarcodeType, String, Out)

public static bool IsTextValid(TXTextControl.Barcode.BarcodeType barcodeType, string text, out string errorMessage);
Public Shared Function IsTextValid(ByVal barcodeType As TXTextControl.Barcode.BarcodeType, ByVal text As String, ByRef errorMessage As String) As Boolean

Parameters

Parameter Description
barcodeType Specifies the barcode type whose text is checked.
text Specifies the text to check.
errorMessage Specifies the string, an appropriate exception message is saved to, if the checked text is not valid for a specific barcode type.

Return Value

True, if the specified text is valid for a specific barcode type. Otherwise false.