Expiry Date Text Builder
Defined in namespace Scandit.DataCapture.Label.Capture
- ExpiryDateTextBuilder
class ExpiryDateTextBuilder : TextFieldTextFieldBuilder
Added in version 7.5.0
This class is used to define an expiry date field for a LabelDefinition in a fluent way.
- SetDataTypePatterns()
ExpiryDateTextBuilder SetDataTypePatterns(
stringdataTypePatterns)Added in version 7.5.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 pattern (e.g., when both packaging and expiry dates are present).
- SetDataTypePatterns()
ExpiryDateTextBuilder SetDataTypePatterns(
string[] dataTypePatterns)Added in version 7.5.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 pattern (e.g., when both packaging and expiry dates are present).
- ResetDataTypePatterns()
ExpiryDateTextBuilder ResetDataTypePatterns()
Added in version 7.5.0
All pre-built fields come with default patterns and dataTypePatterns that are suitable for most use cases. Using either method is optional and will override the defaults.
This method can be used to remove the default dataTypePattern, allowing you to rely solely on the patterns for detection.
- SetLabelDateFormat()
ExpiryDateTextBuilder SetLabelDateFormat(LabelDateFormat labelDateFormat)
Added in version 7.5.0
Sets a LabelDateFormat to use when recognising this date.
- Build()
ExpiryDateText Build(
stringname)Added in version 7.5.0
Builds the ExpiryDateText using the properties provided previously with other methods.