Class MaxiCodeExtCodetextBuilder

MaxiCodeExtCodetextBuilder class

Extended codetext generator for MaxiCode barcodes for ExtendedCodetext Mode of MaxiCodeEncodeMode

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

public class MaxiCodeExtCodetextBuilder : ExtCodetextBuilder

Constructors

NameDescription
MaxiCodeExtCodetextBuilder()The default constructor.

Methods

NameDescription
AddECICodetext(ECIEncodings, string)Adds codetext with Extended Channel Identifier
AddPlainCodetext(string)Adds plain codetext to the extended codetext items
virtual Clear()Clears extended codetext items
override GetExtendedCodetext()Generates Extended codetext from the extended codetext list.

Examples

This sample shows how to use MaxiCodeExtCodetextBuilder in Extended Mode.

[C#]
//create codetext
MaxiCodeExtCodetextBuilder textBuilder = new MaxiCodeExtCodetextBuilder();
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();    

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

See Also