Click or drag to resize

BarcodeControlValidate Method

Validates the passed text against the selected bar code style.

Namespace:  Atalasoft.Barcoding.Writing
Assembly:  Atalasoft.dotImage.Barcoding.Writing (in Atalasoft.dotImage.Barcoding.Writing.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public bool Validate(
	string text,
	bool allowExceptions
)

Parameters

text
Type: SystemString
Text to validate.
allowExceptions
Type: SystemBoolean

Return Value

Type: Boolean
True if the supplied text is compatible with the selected bar code stype or false otherwise.

Return Value

Type: Boolean
Returns true if the barcode is valid, false if allowExceptions is set to false.
Exceptions
ExceptionCondition
ArgumentExceptionThrown if there are characters not compatible with the selected bar code style.
See Also