Class MaxiCodeExtCodetextBuilder

Class MaxiCodeExtCodetextBuilder

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

Розширений генератор кодового тексту для штрих-кодів MaxiCode для режиму розширеного кодового тексту MaxiCodeEncodeMode

Використовуйте властивість TwoDDisplayText класу BarcodeGenerator, щоб встановити видимий текст, видаливши керуючі символи.

public class MaxiCodeExtCodetextBuilder : ExtCodetextBuilder

Наслідування

objectExtCodetextBuilderMaxiCodeExtCodetextBuilder

Спадковані члени

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

Приклади

Цей приклад показує, як використовувати MaxiCodeExtCodetextBuilder у розширеному режимі.

//створити кодовий текст
MaxiCodeExtCodetextBuilder textBuilder = new MaxiCodeExtCodetextBuilder();
textBuilder.AddECICodetext(ECIEncodings.Win1251, "Will");
textBuilder.AddECICodetext(ECIEncodings.UTF8, "犬Right狗");
textBuilder.AddECICodetext(ECIEncodings.UTF16BE, "犬Power狗");
textBuilder.AddPlainCodetext("Plain text");

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

//генерувати
using(BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MaxiCode, codetext))
{
    generator.Parameters.Barcode.CodeTextParameters.TwoDDisplayText = "My Text";
	generator.Save("test.bmp");
}

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

MaxiCodeExtCodetextBuilder()

public MaxiCodeExtCodetextBuilder()

Методи

GetExtendedCodetext()

Генерує розширений кодовий текст з списку розширених кодових текстів.

public override string GetExtendedCodetext()

Повертає

string

Розширений кодовий текст у вигляді рядка

 Українська