Class DotCodeExtCodetextBuilder

Class DotCodeExtCodetextBuilder

Namespace: Aspose.BarCode.Generation
Assembly: Aspose.BarCode.dll (25.1.0)

Rozszerzony generator kodu tekstowego dla kodów kreskowych 2D DotCode w trybie ExtendedCodetext Mode of DotCodeEncodeMode

public class DotCodeExtCodetextBuilder : ExtCodetextBuilder

Dziedziczenie

objectExtCodetextBuilderDotCodeExtCodetextBuilder

Dziedziczone członkowie

ExtCodetextBuilder.Clear(), ExtCodetextBuilder.AddPlainCodetext(string), ExtCodetextBuilder.AddECICodetext(ECIEncodings, string), ExtCodetextBuilder.GetExtendedCodetext(), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Przykłady

//Tryb rozszerzonego kodu tekstowego
//utwórz kod tekstowy
DotCodeExtCodetextBuilder textBuilder = new DotCodeExtCodetextBuilder();
textBuilder.AddFNC1FormatIdentifier();
textBuilder.AddECICodetext(ECIEncodings.Win1251, "Will");
textBuilder.AddFNC1FormatIdentifier();
textBuilder.AddECICodetext(ECIEncodings.UTF8, "犬Right狗");
textBuilder.AddFNC1FormatIdentifier();
textBuilder.AddECICodetext(ECIEncodings.UTF16BE, "犬Power狗");
textBuilder.AddPlainCodetext("Plain text");
textBuilder.AddFNC3SymbolSeparator();
textBuilder.AddFNC3ReaderInitialization();
textBuilder.AddPlainCodetext("Informacje o inicjalizacji czytnika");

//generuj kod tekstowy
string codetext = textBuilder.GetExtendedCodetext();    

//generuj
using(BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.DotCode, codetext))
{
    generator.Parameters.Barcode.DotCode.DotCodeEncodeMode = DotCodeEncodeMode.ExtendedCodetext;
	generator.Save("test.bmp");
}

Konstruktory

DotCodeExtCodetextBuilder()

public DotCodeExtCodetextBuilder()

Metody

AddFNC1FormatIdentifier()

Dodaje identyfikator formatu FNC1 do elementów rozszerzonego kodu tekstowego

public void AddFNC1FormatIdentifier()

AddFNC3ReaderInitialization()

Dodaje inicjalizację czytnika FNC3 do elementów rozszerzonego kodu tekstowego

public void AddFNC3ReaderInitialization()

AddFNC3SymbolSeparator()

Dodaje separator symboli FNC3 do elementów rozszerzonego kodu tekstowego

public void AddFNC3SymbolSeparator()

AddStructuredAppendMode(int, int)

Dodaje tryb strukturalnego dołączania do elementów rozszerzonego kodu tekstowego

public void AddStructuredAppendMode(int barcodeId, int barcodesCount)

Parametry

barcodeId int

ID kodu kreskowego

barcodesCount int

Liczba kodów kreskowych

GetExtendedCodetext()

Generuje rozszerzony kod tekstowy z listy rozszerzonego kodu tekstowego.

public override string GetExtendedCodetext()

Zwraca

string

Rozszerzony kod tekstowy jako ciąg znaków

 Polski