Class HIBCLICSecondaryAndAdditionalDataCodetext
Namespace: Aspose.BarCode.ComplexBarcode
Assembly: Aspose.BarCode.dll (25.2.0)
Class for encoding and decoding the text embedded in the HIBC LIC code which stores seconday data.
public class HIBCLICSecondaryAndAdditionalDataCodetext : HIBCLICComplexCodetext, IComplexCodetext
Inheritance
object ← HIBCLICComplexCodetext ← HIBCLICSecondaryAndAdditionalDataCodetext
Implements
Inherited Members
HIBCLICComplexCodetext.GetConstructedCodetext(), HIBCLICComplexCodetext.InitFromString(string), HIBCLICComplexCodetext.GetBarcodeType(), HIBCLICComplexCodetext.BarcodeType, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Examples
This sample shows how to encode and decode HIBC LIC using HIBCLICSecondaryAndAdditionalDataCodetext.
HIBCLICSecondaryAndAdditionalDataCodetext complexCodetext = new HIBCLICSecondaryAndAdditionalDataCodetext();
complexCodetext.BarcodeType = EncodeTypes.HIBCQRLIC;
complexCodetext.LinkCharacter = 'L';
complexCodetext.Data = new SecondaryAndAdditionalData();
complexCodetext.Data.ExpiryDate = DateTime.Now;
complexCodetext.Data.ExpiryDateFormat = HIBCLICDateFormat.MMDDYY;
complexCodetext.Data.Quantity = 30;
complexCodetext.Data.LotNumber = "LOT123";
complexCodetext.Data.SerialNumber = "SERIAL123";
complexCodetext.Data.DateOfManufacture = DateTime.Now;
using (ComplexBarcodeGenerator generator = new ComplexBarcodeGenerator(complexCodetext))
{
Bitmap image = generator.GenerateBarCodeImage();
using (BarCodeReader reader = new BarCodeReader(image, DecodeType.HIBCQRLIC))
{
reader.ReadBarCodes();
string codetext = reader.FoundBarCodes[0].CodeText;
HIBCLICSecondaryAndAdditionalDataCodetext result = (HIBCLICSecondaryAndAdditionalDataCodetext)ComplexCodetextReader.TryDecodeHIBCLIC(codetext);
Console.WriteLine("Expiry date: " + result.Data.ExpiryDate);
Console.WriteLine("Quantity: " + result.Data.Quantity);
Console.WriteLine("Lot number: " + result.Data.LotNumber);
Console.WriteLine("Serial number: " + result.Data.SerialNumber);
Console.WriteLine("Date of manufacture: " + result.Data.DateOfManufacture);
}
}
Constructors
HIBCLICSecondaryAndAdditionalDataCodetext()
public HIBCLICSecondaryAndAdditionalDataCodetext()
Properties
Data
Identifies secodary and additional supplemental data.
public SecondaryAndAdditionalData Data { get; set; }
Property Value
LinkCharacter
Identifies link character.
public char LinkCharacter { get; set; }
Property Value
Methods
Equals(object)
Returns a value indicating whether this instance is equal to a specified Aspose.BarCode.ComplexBarcode.HIBCLICSecondaryAndAdditionalDataCodetext value.
public override bool Equals(object obj)
Parameters
obj
object
An Aspose.BarCode.ComplexBarcode.HIBCLICSecondaryAndAdditionalDataCodetext value to compare to this instance.
Returns
true if obj has the same value as this instance; otherwise, false.
GetConstructedCodetext()
Constructs codetext
public override string GetConstructedCodetext()
Returns
Constructed codetext
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
A 32-bit signed integer hash code.
InitFromString(string)
Initializes instance from constructed codetext.
public override void InitFromString(string constructedCodetext)
Parameters
constructedCodetext
string
Constructed codetext.