Skip to main content
The FlexiLayout language provides the following predefined types. For each type, the tables list the operators, methods, and constructors it supports.

Void

Type Void is used to declare functions that return no value.

Logic

Boolean type. A variable of this type can have the values true and false. All conditional expressions return a value of type Logic.

String

String type represents a variable-length sequence of Unicode characters.

Int

Integer type. Corresponds to a 32-digit integer.

Distance

Integer type (measured in dots) that represents distances.

XCoordinate

Integer type used to represent X-coordinates.

YCoordinate

Integer type used to represent Y-coordinates.

Real

Real number.

Quality

Real number from 0 to 1. Represents the returned value of the methods controlling the quality of an element hypothesis.

Area

Integer type (measured in dot*dot) used to represent the area of an image region.

ImageObjectType

Type used to represent classified image objects.

DateFormats

Integer type used to represent the format of date.

DayFormatVariants

Integer type used to represent the format of day in the date.

MonthFormatVariants

Integer type used to represent the format of month in the date.

YearFormatVariants

Integer type used to represent the format of year in the date.

XInterval

Type used to represent a range of X-coordinates on an image.

YInterval

Type used to represent a range of Y-coordinates on an image.

DistInterval

Type used to represent the allowed range of distances.

Rect

Rectangle on an image.

FuzzyRect

Fuzzy rectangle. For more information, see Fuzzy rectangle.

RectArray

Array of rectangles.

Region

A region is a set of rectangles positioned one under another in such a way that the top line of the lower rectangle is the bottom line of the upper one (so that the rectangles do not overlap).

ImageObjectSet

Type used to represent the set of image objects belonging to the hypothesis.

TextTypes

Type used to represent a set of text types.

BarcodeTypes

Type used to represent a set of barcode types.

BarcodeOrientations

Type used to represent a set of possible barcode orientations.

RecognitionMode

Integer type used to represent pre-recognition modes.

Direction

Type used to represent the vertical or horizontal direction. Sets the direction of Separator and White Gap elements.

HorSearchAreaBound

Type used to represent the right and left boundaries of the element’s search area. A variable of this type can only be created by using a Let expression.

VertSearchAreaBound

Type used to represent the top and bottom boundaries of the element’s search area. A variable of this type can only be created by using a Let expression.

Hypothesis

Type used to call a hypothesis of the element of any type. For more information, see Hypotheses for all types of elements.

HypothesisInstances

Describes instances of a Repeating Group element. Has the same methods as hypotheses. For more information about the methods of hypotheses, see Hypotheses for all types of elements.

YCoordinateArray

The array of Y coordinates of the rectangles.

TableBlock

A type used to access a table block.

TableBlockColumn

Type used to call a column of the table block. A variable of this type can only be created by using a Let expression. For more information, see Hypotheses for Table elements.

TableBlockColumnArray

Type used to call an array of columns of the table block. A variable of this type can only be created by using a Let expression. For more information, see Hypotheses for Table elements.

TableHypothesis

Type used to call a hypothesis of the table element. For more information, see Hypotheses for Table elements.

TableHypColumn

Type used to call a column of the hypothesis of the table element. A variable of this type can only be created by using a Let expression. For more information, see Hypotheses for Table elements.

TableColumnType

Type used to describe multiple types of column content.

CurrencyPositionTypes

Type used to set the position of the currency name relative to the numerical value in a Currency element.

PageInterval

Type used to represent the page interval of a multi-page document.

PageArea

Area on a page. Returned by PageSearchAreaLocal, PageSearchAreaGlobal, PageAreaLocal, and PageAreaGlobal methods (these functions have page numbers as their arguments). Can be expressed either in global or local coordinates, depending on which function has been called.

PageEdge

The type used to specify the Nearest function relative to a page edge. Allows you to select the hypothesis closest to the top, bottom, left or right page edge.

Page

Type returned by the Page( Int PageNumber ) function.

SearchAreaPageSetType

The type used in the RestrictSearchArea function. The predefined constants for this type are AnyPage, OddPages, EvenPages, and LastPage.

IntArray

Array of integers.

StringArray

Array of strings.

IntFuzzyInterval

A type for representing a fuzzy integer interval of integers. The fuzzy interval is represented by four values of type Int, each of which should be greater than or equal to the previous value.

DistFuzzyInterval

A type for representing a fuzzy integer interval of distances. The fuzzy interval is represented by four values of type Distance, each of which should be greater than or equal to the previous value.

AreaFuzzyInterval

A type for representing a fuzzy integer interval of area. The fuzzy interval is represented by four values of type Area, each of which should be greater than or equal to the previous value.

TextRotations

A type for representing a set of orientations of the recognized text in which the element is searched.