Class Code39
The Code39 is a discrete, variable-length symbology that encodes alphanumeric characters into a series of bars. A special start / stop character is placed at the beginning and ending of each barcode.
Allows character set of digits (0-9), upper case alphabets (A-Z), and symbols like space, minus (-), plus (+), period (.), dollar sign ($), slash (/), and percent (%).
Namespace: Syncfusion.Maui.Barcode
Assembly: Syncfusion.Maui.Barcode.dll
Syntax
public class Code39 : SymbologyBase
Remarks
Code 39 is self-checking, a check digit is not usually required for common use. For certain cases, applications requiring an extremely high level of accuracy of the checksum digit can be added.
Constructors
Code39()
Initializes a new instance of the Code39 class.
Declaration
public Code39()
Fields
EnableCheckSumProperty
Identifies the EnableCheckSum bindable property.
Declaration
public static readonly BindableProperty EnableCheckSumProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for EnableCheckSum bindable property. |
Properties
EnableCheckSum
Gets or sets a value to indicating whether to add a checksum on the far right side of the barcode.
Declaration
public bool EnableCheckSum { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if checksum is calculated; otherwise, false. The default value is true. |
Remarks
The purpose of the check digit is to verify that the barcode information has been provided correctly.
Examples
<barcode:SfBarcodeGenerator Value="123456" ShowText="True">
<barcode:SfBarcodeGenerator.Symbology>
<barcode:Code39 EnableCheckSum="False"/>
</barcode:SfBarcodeGenerator.Symbology>
</barcode:SfBarcodeGenerator>