Aspose::BarCode::Generation::AztecExtCodetextBuilder class

AztecExtCodetextBuilder class

class AztecExtCodetextBuilder : public Aspose::BarCode::Generation::ExtCodetextBuilder

Methods

MethodDescription
AddECICodetext(ECIEncodings, System::String)Adds codetext with Extended Channel Identifier.
AddPlainCodetext(System::String)Adds plain codetext to the extended codetext items.
virtual Clear()Clears extended codetext items.
ExtCodetextBuilder()
GetExtendedCodetext() overrideGenerates Extended codetext from the extended codetext list.

Remarks

Extended codetext generator for Aztec barcodes for ExtendedCodetext Mode of AztecEncodeMode

Use TwoDDisplayText property of BarcodeGenerator to set visible text to removing managing characters.

This sample shows how to use AztecExtCodetextBuilder in Extended Mode.

[C#]
//create codetext
AztecExtCodetextBuilder textBuilder = new AztecExtCodetextBuilder();
textBuilder.AddECICodetext(ECIEncodings.Win1251, "Will");
textBuilder.AddECICodetext(ECIEncodings.UTF8, "犬Right狗");
textBuilder.AddECICodetext(ECIEncodings.UTF16BE, "犬Power狗");
textBuilder.AddPlainCodetext("Plain text");

//generate codetext
string codetext = textBuilder.GetExtendedCodetext();    <br>

//generate
using(BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Aztec, codetext))
{
    generator.Parameters.Barcode.CodeTextParameters.TwoDDisplayText = "My Text";
    generator.Save("test.bmp");
}

See Also