CodetextParameters

CodetextParameters class

Namespace: Aspose.Barcode.Generation

Codetext parameters.

Constructors

NameDescription
__construct

Properties

NameRead/WriteDescription
AlignmentRead/WriteGets the alignment of the code text. Default value: TextAlignment::CENTER.
ColorRead/WriteSpecify the displaying CodeText’s Color. Default value BLACK.
FontRead/WriteSpecify the displaying CodeText’s font. Default value: Arial 5pt regular. Ignored if FontMode is set to FontMode::AUTO.
FontModeRead/WriteSpecify FontMode. If FontMode is set to Auto, font size will be calculated automatically based on xDimension value. It is recommended to use FontMode::AUTO especially in AutoSizeMode.NEAREST or AutoSizeMode::INTERPOLATION. Default value: FontMode::AUTO.
LocationRead/WriteSpecify the displaying CodeText Location, set to CodeLocation::NONE to hide CodeText. Default value: CodeLocation::BELOW.
NoWrapRead/WriteSpecify word wraps (line breaks) within text.
SpaceRead/WriteSpace between the CodeText and the BarCode in Unit value. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon.
TwoDDisplayTextRead/WriteText that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode