Class HIBCLICPrimaryDataCodetext
Tên không gian: Aspose.BarCode.ComplexBarcode Tổng hợp: Aspose.BarCode.dll (25.5.0)
Khóa học để mã hóa và giải mã văn bản tích hợp trong mã HIBC LIC mà lưu trữ dữ liệu chính.
public class HIBCLICPrimaryDataCodetext : HIBCLICComplexCodetext, IComplexCodetextInheritance
object ← HIBCLICComplexCodetext ← HIBCLICPrimaryDataCodetext
Implements
Thành viên thừa kế
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
Mẫu này cho thấy cách mã hóa và giải mã HIBC LIC bằng cách sử dụng HIBCLICPrimaryDataCodetext.
HIBCLICPrimaryDataCodetext complexCodetext = new HIBCLICPrimaryDataCodetext();
complexCodetext.BarcodeType = EncodeTypes.HIBCQRLIC;
complexCodetext.Data = new PrimaryData();
complexCodetext.Data.ProductOrCatalogNumber = "12345";
complexCodetext.Data.LabelerIdentificationCode = "A999";
complexCodetext.Data.UnitOfMeasureID = 1;
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;
HIBCLICPrimaryDataCodetext result = (HIBCLICPrimaryDataCodetext)ComplexCodetextReader.TryDecodeHIBCLIC(codetext);
Console.WriteLine("Product or catalog number: " + result.Data.ProductOrCatalogNumber);
Console.WriteLine("Labeler identification code: " + result.Data.LabelerIdentificationCode);
Console.WriteLine("Unit of measure ID: " + result.Data.UnitOfMeasureID);
}
}Constructors
HiBCLICPrimaryDataCodetext()
public HIBCLICPrimaryDataCodetext()Properties
Data
Xác định dữ liệu cơ bản.
public PrimaryData Data { get; set; }Giá trị bất động sản
Methods
Equals(đối tượng)
Quay lại một giá trị cho thấy nếu mẫu này tương đương với giá trị Aspose.BarCode.ComplexBarcode.HIBCLICPrimaryDataCodetext.
public override bool Equals(object obj)Parameters
obj object
Một Aspose.BarCode.ComplexBarcode.HIBCLICPrimaryDataCodetext giá trị để so sánh với trường hợp này.
Returns
đúng nếu obj có giá trị tương tự như trường hợp này; nếu không, giả.
GetConstructedCodetext()
Xây dựng codetext
public override string GetConstructedCodetext()Returns
Xây dựng codetext
GetHashCode()
Quay lại mã hash cho trường hợp này.
public override int GetHashCode()Returns
Một 32-bit ký mã hash toàn bộ.
InitFromString(String)
Bắt đầu ví dụ từ codetext được xây dựng.
public override void InitFromString(string constructedCodetext)Parameters
constructedCodetext string
Xây dựng codetext.