Class DotCodeExtCodetextBuilder

Class DotCodeExtCodetextBuilder

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

DotCodeEncodeModeのExtendedCodetextモード用の2D DotCodeバーコードの拡張コーディングテキスト生成器

public class DotCodeExtCodetextBuilder : ExtCodetextBuilder

継承

objectExtCodetextBuilderDotCodeExtCodetextBuilder

継承されたメンバー

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

//拡張コーディングテキストモード
//コーディングテキストを作成
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("プレーンテキスト");
textBuilder.AddFNC3SymbolSeparator();
textBuilder.AddFNC3ReaderInitialization();
textBuilder.AddPlainCodetext("リーダー初期化情報");

//コーディングテキストを生成
string codetext = textBuilder.GetExtendedCodetext();    

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

コンストラクター

DotCodeExtCodetextBuilder()

public DotCodeExtCodetextBuilder()

メソッド

AddFNC1FormatIdentifier()

拡張コーディングテキスト項目にFNC1フォーマット識別子を追加します

public void AddFNC1FormatIdentifier()

AddFNC3ReaderInitialization()

拡張コーディングテキスト項目にFNC3リーダー初期化を追加します

public void AddFNC3ReaderInitialization()

AddFNC3SymbolSeparator()

拡張コーディングテキスト項目にFNC3シンボルセパレーターを追加します

public void AddFNC3SymbolSeparator()

AddStructuredAppendMode(int, int)

拡張コーディングテキスト項目に構造的追加モードを追加します

public void AddStructuredAppendMode(int barcodeId, int barcodesCount)

パラメーター

barcodeId int

バーコードのID

barcodesCount int

バーコードの数

GetExtendedCodetext()

拡張コーディングテキストリストから拡張コーディングテキストを生成します。

public override string GetExtendedCodetext()

戻り値

string

文字列としての拡張コーディングテキスト

 日本語