BarcodeSymbologyBase Class
Provides a base class for barcode symbologies.
public abstract class BarcodeSymbologyBase : ObservableObjectBase
- Inheritance:
- object ObservableObjectBase object
Constructors
BarcodeSymbologyBase()
Initializes a new instance of the class.
protected BarcodeSymbologyBase()
Properties
ExampleValue
An example value that is valid for the symbology.
Name
The name of the symbology.
QuietZoneThickness
The quiet zone (margin) thickness around the barcode.
public abstract Thickness QuietZoneThickness { get; set; }
Property Value
- Thickness:
The default value varies based on the common standards for each symbology.
Methods
CreateRenderData(BarcodeEncodingRequest)
Creates the render data for the specified encoding request.
public abstract BarcodeRenderData CreateRenderData(BarcodeEncodingRequest request)
| Parameter | Type | Description |
|---|---|---|
| request | BarcodeEncodingRequest | The encoding request. |
Returns
- BarcodeRenderData:
The BarcodeRenderData for the encoded value.
CreateRenderDataAsync(BarcodeEncodingRequest, CancellationToken)
Creates the render data for the specified encoding request asynchronously.
public virtual Task<BarcodeRenderData> CreateRenderDataAsync(BarcodeEncodingRequest request, CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| request | BarcodeEncodingRequest | The encoding request. |
| cancellationToken | CancellationToken | A cancellation token. |
Returns
- Task<BarcodeRenderData>:
The BarcodeRenderData for the encoded value.
Validate(string)
Validates the specified value.
public abstract BarcodeValidationResult Validate(string value)
| Parameter | Type | Description |
|---|---|---|
| value | string | The value to validate. |
Returns
- BarcodeValidationResult:
A BarcodeValidationResult containing the validation result.
Inherited Members
- ObservableObjectBase.OnPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(PropertyChangedEventArgs)
- ObservableObjectBase.OnPropertyChanging(string)
- ObservableObjectBase.OnPropertyChanging(PropertyChangingEventArgs)
- ObservableObjectBase.SetProperty<T>(ref T, T, string)
- ObservableObjectBase.PropertyChanged
- ObservableObjectBase.PropertyChanging
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()