Class DotCodeExtCodetextBuilder
Namespace: Aspose.BarCode.Generation
Assembly: Aspose.BarCode.dll (25.2.0)
Extended codetext generator for 2D DotCode barcodes for ExtendedCodetext Mode of DotCodeEncodeMode
public class DotCodeExtCodetextBuilder : ExtCodetextBuilder
Inheritance
object ← ExtCodetextBuilder ← DotCodeExtCodetextBuilder
Inherited Members
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
AddFNC1FormatIdentifier()
Adds FNC1 format identifier to the extended codetext items
public void AddFNC1FormatIdentifier()
AddFNC3ReaderInitialization()
Adds FNC3 reader initialization to the extended codetext items
public void AddFNC3ReaderInitialization()
AddFNC3SymbolSeparator()
Adds FNC3 symbol separator to the extended codetext items
public void AddFNC3SymbolSeparator()
AddStructuredAppendMode(int, int)
Adds structured append mode to the extended codetext items
public void AddStructuredAppendMode(int barcodeId, int barcodesCount)
Parameters
barcodeId
int
ID of barcode
barcodesCount
int
Barcodes count
GetExtendedCodetext()
Generates Extended codetext from the extended codetext list.
public override string GetExtendedCodetext()
Returns
Extended codetext as string