Class HIBCPASCodetext

Class HIBCPASCodetext

Le nom : Aspose.BarCode.ComplexBarcode Assemblée: Aspose.BarCode.dll (25.4.0)

Classe per codificare e decodificare il testo incorporato nel codice HIBC PAS.

public class HIBCPASCodetext : IComplexCodetext

Inheritance

object HIBCPASCodetext

Implements

IComplexCodetext

I membri ereditari

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

Questo campione mostra come codificare e decodificare HIBC PAS utilizzando HIBCPASCodetext.

HIBCPASComplexCodetext complexCodetext = new HIBCPASComplexCodetext();
complexCodetext.DataLocation = HIBCPASDataLocation.Patient;
complexCodetext.AddRecord(HIBCPASDataType.LabelerIdentificationCode, "A123");
complexCodetext.AddRecord(HIBCPASDataType.ManufacturerSerialNumber, "SERIAL123");
complexCodetext.BarcodeType = EncodeTypes.HIBCDataMatrixPAS;
using (ComplexBarcodeGenerator generator = new ComplexBarcodeGenerator(complexCodetext))
{
    using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.HIBCDataMatrixPAS))
    {
        reader.ReadBarCodes();
        string codetext = reader.FoundBarCodes[0].CodeText; 
		HIBCPASComplexCodetext readCodetext = ComplexCodetextReader.TryDecodeHIBCPAS(codetext);
		Console.WriteLine("Data location: {0}", readCodetext.DataLocation);
        Console.Write("Data type: {0}. ", readCodetext.GetRecords()[0].DataType);
        Console.WriteLine("Data: {0}", readCodetext.GetRecords()[0].Data);
        Console.Write("Data type: {0}. ", readCodetext.GetRecords()[1].DataType);
        Console.WriteLine("Data: {0}", readCodetext.GetRecords()[1].Data);

    }
}

Constructors

HYBCPASCodéxt()

public HIBCPASCodetext()

Properties

BarcodeType

Il codice HIBC PAS può essere codificato utilizzando i tipi di codice HIBCCode39PAS, HIBCCode128PAS, HIBCAztec:PAS, HIBCDataMatrixPAS e HIBCQRPAS.Valore standard: HIBCCode39PAS.

public BaseEncodeType BarcodeType { get; set; }

Valore di proprietà

BaseEncodeType

DataLocation

Identificare la posizione dei dati.

public HIBCPASDataLocation DataLocation { get; set; }

Valore di proprietà

HIBCPASDataLocation

Methods

AddRecord(Télécharger Télécharger Télécharger Télécharger)

Aggiungi nuovi record

public void AddRecord(HIBCPASDataType dataType, string data)

Parameters

dataType HIBCPASDataType

Tipo di dati

data string

String di dati

AddRecord(Résumé HIBCPAS)

Aggiungi nuovi record

public void AddRecord(HIBCPASRecord record)

Parameters

record HIBCPASRecord

Il record da aggiungere

Clear()

Elenco dei record chiari

public void Clear()

Equals(Objets)

Ritorna un valore che indica se questa instanza è uguale a un valore specificato Aspose.BarCode.ComplexBarcode.HIBCPASCodetext.

public override bool Equals(object obj)

Parameters

obj object

Un Aspose.BarCode.ComplexBarcode.HIBCPASCodetext valore per confrontare con questa instanza.

Returns

bool

vero si l’obj a la même valeur que cette instance ; autrement, The translation of “false” to Italian is “falso”..

GetBarcodeType()

Ottieni il tipo barcode.

public BaseEncodeType GetBarcodeType()

Returns

BaseEncodeType

Tipo di barcode.

GetConstructedCodetext()

Costruire codetext

public string GetConstructedCodetext()

Returns

string

Costruito codetext

GetHashCode()

Ritorna il codice hash per questo caso.

public override int GetHashCode()

Returns

int

Un 32-bit ha firmato un codice hash integrale.

GetRecords()

Scopri la lista dei record

public List<hibcpasrecord> GetRecords()

Returns

List di < HIBCPASRecord >

Elenco dei record

InitFromString(Le string)

Inizializza l’esempio dal codetext costruito.

public void InitFromString(string constructedCodetext)

Parameters

constructedCodetext string

Costruito il codetext.

 Français