CodetextParameters

CodetextParameters class

Codetext parameters.

new CodetextParameters()

Methods

NameDescription
getAlignment()Gets the alignment of the code text. Default value: TextAlignment.CENTER.
getColor()Specify the displaying CodeText’s Color. Default value BLACK.
getFont()Specify the displaying CodeText’s font. Default value: Arial 5pt regular. Ignored if FontMode is set to FontMode.AUTO.
getFontMode()Specify FontMode. If FontMode is set to Auto, font size will be calculated automatically based on xDimension value. It i
getLocation()Specify the displaying CodeText Location, set to CodeLocation.NONE to hide CodeText. Default value: CodeLocation.BELOW.
getNoWrap()Specify word wraps (line breaks) within text. Default value: false.
getSpace()Space between the CodeText and the BarCode in Unit value. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN,
getTwoDDisplayText()Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCo
setAlignment()Sets the alignment of the code text. Default value: TextAlignment.CENTER.
setColor()Specify the displaying CodeText’s Color. Default value BLACK.
setFont()Specify the displaying CodeText’s font. Default value: Arial 5pt regular. Ignored if FontMode is set to FontMode.AUTO.
setFontMode()Specify FontMode. If FontMode is set to Auto, font size will be calculated automatically based on xDimension value. It i
setLocation()Specify the displaying CodeText Location, set to CodeLocation.NONE to hide CodeText. Default value: CodeLocation.NONE.
setNoWrap()Specify word wraps (line breaks) within text. Default value: false.
setSpace()Space between the CodeText and the BarCode in Unit value. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN,
setTwoDDisplayText()Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCo
toString()Returns a human-readable string representation of this CodetextParameters.