Class DataMatrixExtendedParameters
Tên không gian: Aspose.BarCode.BarCodeRecognition Tổng hợp: Aspose.BarCode.dll (25.4.0)
Lưu trữ dữ liệu đặc biệt của mã vạch DataMatrix được công nhận
public sealed class DataMatrixExtendedParameters : BaseExtendedParameters
Inheritance
object ← BaseExtendedParameters ← DataMatrixExtendedParameters
Thành viên thừa kế
BaseExtendedParameters.IsEmpty , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Mẫu này cho thấy làm thế nào để có được các giá trị nguyên liệu của DataMatrix
using (BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.DataMatrix, "12345"))
{
generator.Save(@"c:\test.png");
}
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.DataMatrix))
{
foreach (BarCodeResult result in reader.ReadBarCodes())
{
Console.WriteLine("BarCode type: " + result.CodeTypeName);
Console.WriteLine("BarCode codetext: " + result.CodeText);
Console.WriteLine("DataMatrix barcode ID: " + result.Extended.DataMatrix.StructuredAppendBarcodeId);
Console.WriteLine("DataMatrix barcodes count: " + result.Extended.DataMatrix.StructuredAppendBarcodesCount);
Console.WriteLine("DataMatrix file ID: " + result.Extended.DataMatrix.StructuredAppendFileId);
Console.WriteLine("DataMatrix is reader programming: " + result.Extended.DataMatrix.IsReaderProgramming);
}
}
Properties
IsReaderProgramming
Nó chỉ ra liệu mã được sử dụng để hướng dẫn người đọc để giải thích các dữ liệu sau đây như hướng dẫn để khởi động hoặc lập trình lại người đọc mã thanh.Giá trị mặc định là giả.
public bool IsReaderProgramming { get; }
Giá trị bất động sản
StructuredAppendBarcodeId
Nhận ID của DataMatrix cấu trúc add mode mã thanh. ID bắt đầu từ 1 và phải ít hơn hoặc bằng số mã thanh. giá trị mặc định là -1.
public int StructuredAppendBarcodeId { get; }
Giá trị bất động sản
StructuredAppendBarcodesCount
Nhận dữ liệuMatrix cấu trúc tính toán mã thanh chế độ ứng dụng. giá trị mặc định là -1. tính toán phải là giá trị từ 1 đến 35.
public int StructuredAppendBarcodesCount { get; }
Giá trị bất động sản
StructuredAppendFileId
Nhận ID của DataMatrix cấu trúc add mode mã thanh. ID bắt đầu từ 1 và phải ít hơn hoặc bằng số mã thanh. giá trị mặc định là -1.
public int StructuredAppendFileId { get; }
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.BarCodeRecognition.DataMatrixExtendedParameters cụ thể.
public override bool Equals(object obj)
Parameters
obj
object
Một System.Object 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ả.
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ộ.
ToString()
Trở lại một biểu hiện chuỗi người đọc của Aspose.BarCode.BarCodeRecognition.DataMatrixExtendedParameters.
public override string ToString()
Returns
Một dòng đại diện cho Aspose.BarCode.BarCodeRecognition.DataMatrixExtendedParameters.
Operators
Nhà điều hành =(DataMatrixExtendedCác thông số, DataMatrixExtendedCác thông số)
Quay lại một giá trị cho thấy liệu giá trị Aspose.BarCode.BarCodeRecognition.DataMatrixExtendedParameters là tương đương với giá trị thứ hai hay không.
public static bool operator ==(DataMatrixExtendedParameters first, DataMatrixExtendedParameters second)
Parameters
first
DataMatrixExtendedParameters
Giá trị so sánh đầu tiên
second
DataMatrixExtendedParameters
Giá trị so sánh thứ hai
Returns
đúng Nếu đầu tiên có giá trị tương tự như thứ hai; nếu không, giả.
Nhà điều hành !=(DataMatrixExtendedCác thông số, DataMatrixExtendedCác thông số)
Quay lại một giá trị cho thấy nếu giá trị đầu tiên Aspose.BarCode.BarCodeRecognition.DataMatrixExtendedParameters khác với giá trị thứ hai.
public static bool operator !=(DataMatrixExtendedParameters first, DataMatrixExtendedParameters second)
Parameters
first
DataMatrixExtendedParameters
Giá trị so sánh đầu tiên
second
DataMatrixExtendedParameters
Giá trị so sánh thứ hai
Returns
đúng Nếu đầu tiên có giá trị khác với thứ hai; nếu không, giả.