textLocation

Specifies the location of any text associated with the barcode.

The region available for embedded text, if any, is determined by the barcode format. For most barcode formats it is a single, contiguous region. However, for EAN series barcodes, it is divided into four regions that inherit the typeface property and size property from the enclosing field. The form design must specify a typeface property and size property for the field that will fit into the provided space without overlapping any bars. The typeface property should be non-proportional.

Syntax

Reference_Syntax.textLocation = "below | none | above | aboveEmbedded | belowEmbedded"

Values

Type

Values

String

  • below (default)

  • above

  • belowEmbedded

  • aboveEmbedded

  • none

Places text below the barcode.

  • above

  • belowEmbedded

  • aboveEmbedded

  • none

Places text above the barcode.

  • belowEmbedded

  • aboveEmbedded

  • none

Partially embeds text at the bottom of the barcode aligned with the bottom of the bars.

  • aboveEmbedded

  • none

Partially embeds text at the top of the barcode aligned with the top of the bars.

  • none

Displays no text.

Applies to

Model

Object

Form Model

barcode

Version

XFA 2.1

Examples

JavaScript

Code11BarCode1.resolveNode("ui.#barcode").textLocation = "aboveEmbedded";

FormCalc

Code11BarCode1.ui.#barcode.textLocation = "aboveEmbedded"

// Ethnio survey code removed