Class AztecExtCodetextBuilder

Class AztecExtCodetextBuilder

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

Расширенный генератор кодов для штрих-кодов Aztec в режиме ExtendedCodetext Mode AztecEncodeMode

Используйте свойство TwoDDisplayText класса BarcodeGenerator для установки видимого текста, удаляя управляющие символы.

public class AztecExtCodetextBuilder : ExtCodetextBuilder

Наследование

objectExtCodetextBuilderAztecExtCodetextBuilder

Унаследованные члены

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

Примеры

Этот пример показывает, как использовать AztecExtCodetextBuilder в расширенном режиме.

//создать кодовый текст
AztecExtCodetextBuilder textBuilder = new AztecExtCodetextBuilder();
textBuilder.AddECICodetext(ECIEncodings.Win1251, "Will");
textBuilder.AddECICodetext(ECIEncodings.UTF8, "犬Right狗");
textBuilder.AddECICodetext(ECIEncodings.UTF16BE, "犬Power狗");
textBuilder.AddPlainCodetext("Обычный текст");

//генерировать кодовый текст
string codetext = textBuilder.GetExtendedCodetext();    

//генерировать
using(BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Aztec, codetext))
{
    generator.Parameters.Barcode.CodeTextParameters.TwoDDisplayText = "Мой текст";
	generator.Save("test.bmp");
}

Конструкторы

AztecExtCodetextBuilder()

public AztecExtCodetextBuilder()

Методы

GetExtendedCodetext()

Генерирует расширенный кодовый текст из списка расширенного кодового текста.

public override string GetExtendedCodetext()

Возвращает

string

Расширенный кодовый текст в виде строки

 Русский