Class AztecExtCodetextBuilder

Class AztecExtCodetextBuilder

Namespace: Aspose.BarCode.Generation
Assembly: Aspose.BarCode.dll (25.1.0)

Rozszerzony generator kodu tekstowego dla kodów kreskowych Aztec w trybie ExtendedCodetext Mode of AztecEncodeMode

Użyj właściwości TwoDDisplayText klasy BarcodeGenerator, aby ustawić widoczny tekst, usuwając znaki sterujące.

public class AztecExtCodetextBuilder : ExtCodetextBuilder

Dziedziczenie

objectExtCodetextBuilderAztecExtCodetextBuilder

Dziedziczone członkowie

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()

Przykłady

Ten przykład pokazuje, jak używać AztecExtCodetextBuilder w trybie rozszerzonym.

//tworzenie kodu tekstowego
AztecExtCodetextBuilder textBuilder = new AztecExtCodetextBuilder();
textBuilder.AddECICodetext(ECIEncodings.Win1251, "Will");
textBuilder.AddECICodetext(ECIEncodings.UTF8, "犬Right狗");
textBuilder.AddECICodetext(ECIEncodings.UTF16BE, "犬Power狗");
textBuilder.AddPlainCodetext("Plain text");

//generowanie kodu tekstowego
string codetext = textBuilder.GetExtendedCodetext();    

//generowanie
using(BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Aztec, codetext))
{
    generator.Parameters.Barcode.CodeTextParameters.TwoDDisplayText = "Mój tekst";
	generator.Save("test.bmp");
}

Konstruktory

AztecExtCodetextBuilder()

public AztecExtCodetextBuilder()

Metody

GetExtendedCodetext()

Generuje rozszerzony kod tekstowy z listy rozszerzonych kodów tekstowych.

public override string GetExtendedCodetext()

Zwraca

string

Rozszerzony kod tekstowy jako string

 Polski