Class DotCodeExtCodetextBuilder

Class DotCodeExtCodetextBuilder

Именује се: Aspose.BarCode.Generation Асамблеја: Aspose.BarCode.dll (25.4.0)

Проширен кодетекст генератор за 2Д ДотЦоде баркоде за ПроширенЦодетекст режим ДотЦодеЕнцодеМоде

public class DotCodeExtCodetextBuilder : ExtCodetextBuilder

Inheritance

object ExtCodetextBuilder DotCodeExtCodetextBuilder

Наслеђени чланови

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

AddFNC1ФорматИдентификатор()

Додавање ФНЦ1 формат идентификатор за проширене кодетексте елементе

public void AddFNC1FormatIdentifier()

AddFNC3ReaderИницијализација()

Додаје Иницијализацију ФНЦ3 читаоца на проширене елементе кодетекста

public void AddFNC3ReaderInitialization()

AddFNC3SymbolSeparator()

Додавање FNC3 симбола сепаратора на проширене кодетексте елементе

public void AddFNC3SymbolSeparator()

AddStructuredAppendMode(Инт, Инт)

Додавање структурираног приложеног режима за проширене елементе кодетекста

public void AddStructuredAppendMode(int barcodeId, int barcodesCount)

Parameters

barcodeId int

Идентификација баркода

barcodesCount int

Број баркода

GetExtendedCodetext()

Генерише проширени кодетекст из проширеног кодетекст листе.

public override string GetExtendedCodetext()

Returns

string

Проширење кода као строг

 Српски