Class DotCodeExtCodetextBuilder
Названий на: Aspose.BarCode.Generation Асамблея: Aspose.BarCode.dll (25.4.0)
Розширений кодетекст-генератор для 2D DotCode баркодів для ExtendedCodetext Mode для DotCodeEncodeMode
public class DotCodeExtCodetextBuilder : ExtCodetextBuilder
Inheritance
object ← ExtCodetextBuilder ← DotCodeExtCodetextBuilder
Нападні члени
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()
Формат FNC1 ідентифікує розширені елементи кодетексту
public void AddFNC1FormatIdentifier()
AddFNC3ReaderІніціалізація()
Додаток FNC3 читача ініціалізації до розширених елементів кодетексту
public void AddFNC3ReaderInitialization()
AddFNC3SymbolСекпаратор()
Додає FNC3 символічний сепаратор до розширених елементів кодетексту
public void AddFNC3SymbolSeparator()
AddStructuredAppendMode(ІТ, ІТ)
Додавання структурованого режиму додатків до розширених елементів кодетексту
public void AddStructuredAppendMode(int barcodeId, int barcodesCount)
Parameters
barcodeId
int
Ідентифікатор баркоду
barcodesCount
int
Кількість баркодів
GetExtendedCodetext()
Використовується розширений кодетек з розширеного списку кодетек.
public override string GetExtendedCodetext()
Returns
Розширений код як стрічка