Class HIBCLICComplexCodetext
Namespace: Aspose.BarCode.ComplexBarcode
Assembly: Aspose.BarCode.dll (25.1.0)
คลาสพื้นฐานสำหรับการเข้ารหัสและถอดรหัสข้อความที่ฝังอยู่ในรหัส HIBC LIC
public abstract class HIBCLICComplexCodetext : IComplexCodetext
การสืบทอด
object ← HIBCLICComplexCodetext
ที่สืบทอด
HIBCLICCombinedCodetext, HIBCLICPrimaryDataCodetext, HIBCLICSecondaryAndAdditionalDataCodetext
การนำไปใช้
สมาชิกที่สืบทอด
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
ตัวอย่าง
ตัวอย่างนี้แสดงวิธีการถอดรหัสข้อความ HIBC LIC แบบดิบไปยังอินสแตนซ์ HIBCLICComplexCodetext
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.HIBCAztecLIC))
{
foreach (BarCodeResult result in reader.ReadBarCodes())
{
HIBCLICComplexCodetext resultHIBCLICComplexCodetext = ComplexCodetextReader.TryDecodeHIBCLIC(result.CodeText);
Console.WriteLine("ประเภทบาร์โค้ด: " + resultMaxiCodeCodetext.GetBarcodeType());
Console.WriteLine("ข้อความบาร์โค้ด: " + resultMaxiCodeCodetext.GetConstructedCodetext());
}
}
ตัวสร้าง
HIBCLICComplexCodetext()
protected HIBCLICComplexCodetext()
คุณสมบัติ
BarcodeType
รับหรือกำหนดประเภทบาร์โค้ด ข้อความ HIBC LIC สามารถเข้ารหัสโดยใช้ประเภทการเข้ารหัส HIBCCode39LIC, HIBCCode128LIC, HIBCAztecLIC, HIBCDataMatrixLIC และ HIBCQRLIC
ค่าปริยาย: HIBCCode39LIC
public BaseEncodeType BarcodeType { get; set; }
ค่าคุณสมบัติ
วิธีการ
GetBarcodeType()
รับประเภทบาร์โค้ด
public BaseEncodeType GetBarcodeType()
คืนค่า
ประเภทบาร์โค้ด
GetConstructedCodetext()
สร้างข้อความโค้ด
public abstract string GetConstructedCodetext()
คืนค่า
ข้อความโค้ดที่สร้างขึ้น
InitFromString(string)
เริ่มต้นอินสแตนซ์จากข้อความโค้ดที่สร้างขึ้น
public abstract void InitFromString(string constructedCodetext)
พารามิเตอร์
constructedCodetext
string
ข้อความโค้ดที่สร้างขึ้น