Class DotCodeExtCodetextBuilder
Namespace: Aspose.BarCode.Generation
Assembly: Aspose.BarCode.dll (25.1.0)
Rozšířený generátor kódového textu pro 2D DotCode čárové kódy pro režim rozšířeného kódového textu DotCodeEncodeMode
public class DotCodeExtCodetextBuilder : ExtCodetextBuilder
Dědičnost
object ← ExtCodetextBuilder ← DotCodeExtCodetextBuilder
Děděné členy
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()
Příklady
//Režim rozšířeného kódového textu
//vytvořit kódový text
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("Informace o inicializaci čtečky");
//generovat kódový text
string codetext = textBuilder.GetExtendedCodetext();
//generovat
using(BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.DotCode, codetext))
{
generator.Parameters.Barcode.DotCode.DotCodeEncodeMode = DotCodeEncodeMode.ExtendedCodetext;
generator.Save("test.bmp");
}
Konstruktory
DotCodeExtCodetextBuilder()
public DotCodeExtCodetextBuilder()
Metody
AddFNC1FormatIdentifier()
Přidá identifikátor formátu FNC1 do položek rozšířeného kódového textu
public void AddFNC1FormatIdentifier()
AddFNC3ReaderInitialization()
Přidá inicializaci čtečky FNC3 do položek rozšířeného kódového textu
public void AddFNC3ReaderInitialization()
AddFNC3SymbolSeparator()
Přidá oddělovač symbolů FNC3 do položek rozšířeného kódového textu
public void AddFNC3SymbolSeparator()
AddStructuredAppendMode(int, int)
Přidá strukturovaný režim připojení do položek rozšířeného kódového textu
public void AddStructuredAppendMode(int barcodeId, int barcodesCount)
Parametry
barcodeId
int
ID čárového kódu
barcodesCount
int
Počet čárových kódů
GetExtendedCodetext()
Generuje rozšířený kódový text ze seznamu rozšířeného kódového textu.
public override string GetExtendedCodetext()
Vrací
Rozšířený kódový text jako řetězec