> ## 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.

# White Gap

> Control White Gap element search in the FlexiLayout language: gap orientation, upper and lower thresholds, minimum width, and object type filters.

The **White Gap** element supports the following parameters in the FlexiLayout language.

## White Gap parameters

| Parameter                                                                              | Description                                                                                                                                                                                                                                                                                                                                               |
| -------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Void Mode( Direction )`                                                               | White Gap orientation. See the **Element Properties** dialog box, **White Gap** tab, and [Hypotheses for White Gap elements](/flexi-capture/fls/hypotheses/hyp-white-gap).                                                                                                                                                                                |
| `Void RelativeGapLevel( Real )`                                                        | See **White Gap** > **Relative upper threshold** and [Hypotheses for White Gap elements](/flexi-capture/fls/hypotheses/hyp-white-gap).                                                                                                                                                                                                                    |
| `Void MaxGapLevel( Distance )`                                                         | See **White Gap** > **Upper threshold** and [Hypotheses for White Gap elements](/flexi-capture/fls/hypotheses/hyp-white-gap).                                                                                                                                                                                                                             |
| `Void MinGapLevel( Distance )`                                                         | See **White Gap** > **Lower threshold** and [Hypotheses for White Gap elements](/flexi-capture/fls/hypotheses/hyp-white-gap).                                                                                                                                                                                                                             |
| `Void MinGapWidth( Distance )`                                                         | See **White Gap** > **Min width/height** and [Hypotheses for White Gap elements](/flexi-capture/fls/hypotheses/hyp-white-gap).                                                                                                                                                                                                                            |
| `Void Type( `[`ImageObjectType`](/flexi-capture/fls/language/predefined-constants)` )` | Specifies the object types among which to search for white gaps.                                                                                                                                                                                                                                                                                          |
| `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`). |

## Examples

### `Mode`

The following code tells FlexiLayout Studio to look for a vertical gap.

```text theme={null}
Mode: Vertical;
```

### `MaxGapLevel`

The following code tells FlexiLayout Studio that the maximum gap level may not exceed 150 dots.

```text theme={null}
MaxGapLevel (150dt);
```

### `MinGapWidth`

The following code tells FlexiLayout Studio that the minimum height of the horizontal gap is 50 dots.

```text theme={null}
Mode: Horizontal;
MinGapWidth (50dt);
```

### `Type`

The following code specifies that FlexiLayout Studio must look for white gaps only among text objects.

```text theme={null}
Type: AnyText+InvertedTextObject;
```

## Related topics

* [Hypotheses for White Gap elements](/flexi-capture/fls/hypotheses/hyp-white-gap)
