Class DotCodeExtCodetextBuilder

Class DotCodeExtCodetextBuilder

Název místa: Aspose.BarCode.Generation Shromáždění: Aspose.BarCode.dll (25.4.0)

Rozšířený kódový generátor pro 2D DotCode barové kódy pro Rozšířený kódový režim DotCodeEncodeMode

public class DotCodeExtCodetextBuilder : ExtCodetextBuilder

Inheritance

object ExtCodetextBuilder DotCodeExtCodetextBuilder

Dědiční členové

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()

Examples

//Extended codetext mode
//create codetext
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("Reader initialization info");

//generate codetext
string codetext = textBuilder.GetExtendedCodetext();    

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

Constructors

DotCodeExtCodetextBuilder()

public DotCodeExtCodetextBuilder()

Methods

AddFNC1FormatIdentifikátor()

Ads FNC1 formátový identifikátor pro rozšířené položky kódového textu

public void AddFNC1FormatIdentifier()

AddFNC3ReaderInitializace()

Ads FNC3 čtečka inicializace na rozšířené textové položky

public void AddFNC3ReaderInitialization()

AddFNC3SymbolSeparátor()

Přidání FNC3 symbol separátoru na rozšířené textové položky

public void AddFNC3SymbolSeparator()

AddStructuredAppendMode(a int, int)

Přidání strukturovaného režimu dodatku k rozšířeným kódovým textovým položkám

public void AddStructuredAppendMode(int barcodeId, int barcodesCount)

Parameters

barcodeId int

Identifikace barcode

barcodesCount int

Barcode počítání

GetExtendedCodetext()

Vytváří rozšířený kódový text z rozšířeného seznamu kódových text.

public override string GetExtendedCodetext()

Returns

string

Rozšířený text jako string

 Čeština