Class HIBCLICPrimaryDataCodetext
Именује се: Aspose.BarCode.ComplexBarcode Асамблеја: Aspose.BarCode.dll (25.4.0)
Класа за кодирање и декодирање текста уграђеног у ХИБЦ ЛИЦ код који складишти примарне податке.
public class HIBCLICPrimaryDataCodetext : HIBCLICComplexCodetext, IComplexCodetext
Inheritance
object ← HIBCLICComplexCodetext ← HIBCLICPrimaryDataCodetext
Implements
Наслеђени чланови
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
Овај узор показује како кодирати и декодирати ХИБЦ ЛИЦ користећи ХИБЦЛИЦПримариДатаЦодетекст.
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
ХИБЦЛИЦПРИМИРДАНАКОДЕКСТ()
public HIBCLICPrimaryDataCodetext()
Properties
Data
Идентификује примарне податке.
public PrimaryData Data { get; set; }
Вредност имовине
Methods
Equals(Објекат)
Враћа вредност која указује да ли је ова инстанција једнака одређеној вредности Aspose.BarCode.ComplexBarcode.HIBCLICPrimaryDataCodetext.
public override bool Equals(object obj)
Parameters
obj
object
Aspose.BarCode.ComplexBarcode.HIBCLICPrimaryDataCodetext вредност да се упореди са овим примјером.
Returns
Истински ако OBJ има исту вредност као и ова инстанција; иначе, фалсификовани.
GetConstructedCodetext()
Изградња кодетекста
public override string GetConstructedCodetext()
Returns
Конструисани кодекс
GetHashCode()
Повратак хаш кода за ову инстанцију.
public override int GetHashCode()
Returns
32-бит је потписао интегрисани хаш код.
InitFromString(Стринг)
Иницијалише примјер из изграђеног кодетекста.
public override void InitFromString(string constructedCodetext)
Parameters
constructedCodetext
string
Конструисани кодекс.