Custom Barcode Builder
Defined in namespace Scandit.DataCapture.Label.Capture
- CustomBarcodeBuilder
class CustomBarcodeBuilder : BarcodeFieldBuilder<CustomBarcodeBuilder, CustomBarcode>
Added in version 8.1.0
Builder class for creating CustomBarcode field definitions. Provides a fluent interface for configuring barcode field properties including symbologies, validation regexes, location constraints, and other field-specific settings.
- SetLocation()
CustomBarcodeBuilder SetLocation(LabelFieldLocation location)
Added in version 8.1.0
Sets the expected location of this barcode field within the label using a predefined or custom location.
- SetLocation()
CustomBarcodeBuilder SetLocation(
floatleft,floattop,floatright,floatbottom)Added in version 8.1.0
Sets the expected location of this barcode field using coordinate values.
- SetAnchorRegexes()
CustomBarcodeBuilder SetAnchorRegexes(IList<
string> anchorRegexes)Added in version 8.1.0
Used to specify keywords or phrases that help identify the context of the field. This is particularly useful when the label contains multiple fields that could match the same regex (e.g., when both packaging and expiry dates are present).
- SetAnchorRegex()
CustomBarcodeBuilder SetAnchorRegex(Regex anchorRegex)
Added in version 8.1.0
Used to specify keywords or phrases that help identify the context of the field. This is particularly useful when the label contains multiple fields that could match the same regex (e.g., when both packaging and expiry dates are present).
- Build()
CustomBarcode Build(
stringname)Added in version 8.1.0
Creates a CustomBarcode field definition with the specified name and all configured properties. This method finalizes the builder configuration and returns a field definition that can be added to a LabelDefinition.