Class AztecExtCodetextBuilder
Class AztecExtCodetextBuilder
Namespace: Aspose.BarCode.Generation
Assembly: Aspose.BarCode.dll (25.1.0)
拡張コーディングテキストジェネレーターは、AztecEncodeModeのExtendedCodetextモード用のAztecバーコードです。
BarcodeGeneratorのTwoDDisplayTextプロパティを使用して、管理文字を削除して表示テキストを設定します。
public class AztecExtCodetextBuilder : ExtCodetextBuilder
継承
object ← ExtCodetextBuilder ← AztecExtCodetextBuilder
継承メンバー
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()
例
このサンプルは、ExtendedモードでAztecExtCodetextBuilderを使用する方法を示しています。
//コーディングテキストを作成
AztecExtCodetextBuilder textBuilder = new AztecExtCodetextBuilder();
textBuilder.AddECICodetext(ECIEncodings.Win1251, "Will");
textBuilder.AddECICodetext(ECIEncodings.UTF8, "犬Right狗");
textBuilder.AddECICodetext(ECIEncodings.UTF16BE, "犬Power狗");
textBuilder.AddPlainCodetext("プレーンテキスト");
//コーディングテキストを生成
string codetext = textBuilder.GetExtendedCodetext();
//生成
using(BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Aztec, codetext))
{
generator.Parameters.Barcode.CodeTextParameters.TwoDDisplayText = "My Text";
generator.Save("test.bmp");
}
コンストラクター
AztecExtCodetextBuilder()
public AztecExtCodetextBuilder()
メソッド
GetExtendedCodetext()
拡張コーディングテキストリストから拡張コーディングテキストを生成します。
public override string GetExtendedCodetext()
戻り値
拡張コーディングテキストを文字列として返します。