Label Field Definition Builder

Defined in namespace Scandit.DataCapture.Label.Capture

LabelFieldDefinitionBuilder
abstract class LabelFieldDefinitionBuilder<BuilderType, FieldType>

Added in version 8.1.0

Abstract base class for field definition builders. Provides common functionality for configuring field properties such as regexes, optional status, and hidden properties.

SetValueRegexes()
BuilderType SetValueRegexes(IList<string> valueRegexes)

Added in version 8.1.0

Sets the regexes used for content validation from a collection of strings.

SetValueRegex()
BuilderType SetValueRegex(string valueRegex)

Added in version 8.1.0

Sets a regular expression for content validation.

SetValueRegex()
BuilderType SetValueRegex(Regex valueRegex)

Added in version 8.1.0

Sets a regular expression for content validation.

SetHiddenProperty()
BuilderType SetHiddenProperty(string key, object value)

Added in version 8.1.0

SetHiddenProperties()
BuilderType SetHiddenProperties(IDictionary<string, object> hiddenProperties)

Added in version 8.1.0

IsOptional()
BuilderType IsOptional(bool optional)

Added in version 8.1.0

SetNumberOfMandatoryInstances()
BuilderType SetNumberOfMandatoryInstances(int numberOfMandatoryInstances)

Added in version 8.1.0

The minimum number of instances of this field that must be captured for the label to be considered complete. This is useful for fields that may appear multiple times on a label, such as multiple serial numbers or repeated information.

Build()
abstract FieldType Build(string name)

Added in version 8.1.0

Creates a field definition with the specified name and all configured properties.