CodetextParameters

CodetextParameters

Codetext parameters.

Constructor

new CodetextParameters()

Source:

Methods

getAlignment()

Gets the alignment of the code text.
Default value: TextAlignment.CENTER.
Source:

getColor()

Specify the displaying CodeText's Color.
Default value BLACK.
Source:

getFont()

Specify the displaying CodeText's font.
Default value: Arial 5pt regular.
Ignored if FontMode is set to FontMode.AUTO.
Source:

getFontMode()

Specify 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.
Source:

getLocation()

Specify the displaying CodeText Location, set to CodeLocation.NONE to hide CodeText.
Default value: CodeLocation.BELOW.
Source:

getNoWrap()

Specify word wraps (line breaks) within text.
Default value: false.
Source:

getSpace()

Space between the CodeText and the BarCode in Unit value.
Default value: 2pt.
Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon.
Source:

getTwoDDisplayText()

Text that will be displayed instead of codetext in 2D barcodes.
Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode
Source:

setAlignment()

Sets the alignment of the code text.
Default value: TextAlignment.CENTER.
Source:

setColor()

Specify the displaying CodeText's Color.
Default value BLACK.
Source:

setFont()

Specify the displaying CodeText's font.
Default value: Arial 5pt regular.
Ignored if FontMode is set to FontMode.AUTO.
Source:

setFontMode()

Specify 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.
Source:

setLocation()

Specify the displaying CodeText Location, set to CodeLocation.NONE to hide CodeText.
Default value: CodeLocation.NONE.
Source:

setNoWrap()

Specify word wraps (line breaks) within text.
Default value: false.
Source:

setSpace()

Space between the CodeText and the BarCode in Unit value.
Default value: 2pt.
Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon.
Source:

setTwoDDisplayText()

Text that will be displayed instead of codetext in 2D barcodes.
Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode
Source:

toString()

Returns a human-readable string representation of this CodetextParameters.
Returns:
Type Description
A string that represents this CodetextParameters.
Source: