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
متن کد ساخته شده.