> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Object Collection

> Configure Object Collection element properties in the FlexiLayout language: object type, size limits, whole-word mode, raw text use, and outside parts.

The **Object Collection** element supports the following parameters in the FlexiLayout language.

## Object Collection parameters

| Parameter                                                                                                        | Description                                                                                                                                                                                                                                                                                                                                                           |
| ---------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Void Type( `[`ImageObjectType`](/flexi-capture/fls/language/predefined-constants#imageobjecttypedefinition)` )` | Sets the value of the **Type** parameter. See **Element properties** > **Object Collection** > **Type**.                                                                                                                                                                                                                                                              |
| `Void MinObjHeight( Distance )`                                                                                  | See **Object size** > **Min Height**. You can use any [units of measurement](/flexi-capture/fls/language/coordinates).                                                                                                                                                                                                                                                |
| `Void MaxObjHeight( Distance )`                                                                                  | See **Object size** > **Max Height**. You can use any [units of measurement](/flexi-capture/fls/language/coordinates).                                                                                                                                                                                                                                                |
| `Void MinObjWidth( Distance )`                                                                                   | See **Object size** > **Min Width**. You can use any [units of measurement](/flexi-capture/fls/language/coordinates).                                                                                                                                                                                                                                                 |
| `Void MaxObjWidth( Distance )`                                                                                   | See **Object size** > **Max Width**. You can use any [units of measurement](/flexi-capture/fls/language/coordinates).                                                                                                                                                                                                                                                 |
| `Void WholeWordMode( Logic )`                                                                                    | This flag specifies whether only whole text objects should be considered as hypotheses. When set to `true`, hypotheses consisting of word parts are ignored. The flag is set to `false` by default.<br />**Note.** Restrictions on the height and width of objects are applied to words if the flag is set to `true` and to characters if the flag is set to `false`. |
| `Void UseRawText( Logic )`                                                                                       | Enables the use in text searches of those unrecognized text-like objects that were assigned the type **Raw Text** during [pre-recognition](/flexi-capture/fls/batch/prerecognition). To enable this feature, call the method with parameter `true`. By default, only recognized text is used in text searches (that is, the parameter is set to `false`).             |
| `Void MaxXOutsidePart( Real )`                                                                                   | Specifies the part of the object that may extend beyond the search area horizontally. The part is specified by a number from `0` to `1`. Objects that have the specified or a smaller part outside the search area are included in the hypothesis.                                                                                                                    |
| `Void MaxYOutsidePart( Real )`                                                                                   | Specifies the part of the object that may extend beyond the search area vertically. The part is specified by a number from `0` to `1`. Objects that have the specified or a smaller part outside the search area are included in the hypothesis.                                                                                                                      |

## `Type` example

The following code sets a list of objects of type **Barcode** and **Picture** for the current **Object Collection** element:

```text theme={null}
Type: BarcodeObject + PictureObject;
```

This is the same as:

```text theme={null}
Type(BarcodeObject + PictureObject);
```

Calling this property finds all the objects of the **Barcode** and **Picture** type in the search area of the element.

## `MinObjHeight` example

The following code sets the minimum height to `10mm`:

```text theme={null}
MinObjHeight(10mm);
```
