Class AztecExtCodetextBuilder
Namespace: Aspose.BarCode.Generation
Assembly: Aspose.BarCode.dll (25.1.0)
Розширений генератор кодового тексту для штрих-кодів Aztec для Режиму Розширеного Кодового Тексту AztecEncodeMode
Використовуйте властивість TwoDDisplayText класу BarcodeGenerator, щоб встановити видимий текст, видаливши керуючі символи.
public class AztecExtCodetextBuilder : ExtCodetextBuilder
Спадкування
object ← ExtCodetextBuilder ← AztecExtCodetextBuilder
Спадковані члени
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("Plain text");
//генерувати кодовий текст
string codetext = textBuilder.GetExtendedCodetext();
//генерувати
using(BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Aztec, codetext))
{
generator.Parameters.Barcode.CodeTextParameters.TwoDDisplayText = "My Text";
generator.Save("test.bmp");
}
Конструктори
AztecExtCodetextBuilder()
public AztecExtCodetextBuilder()
Методи
GetExtendedCodetext()
Генерує Розширений кодовий текст з списку розширених кодових текстів.
public override string GetExtendedCodetext()
Повертає
Розширений кодовий текст у вигляді рядка