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

# Creating, editing, and deleting blocks

> Create, edit, and delete blocks in the FlexiLayout tree: pick a layout alternative, bind a source element or region expression, and manage properties.

## To create a new block:

1. Switch to the **FlexiLayout** window.
2. Select the **Blocks** branch in the **FlexiLayout** tree.
3. In the **FlexiLayout** menu, select **Add Block > \[Type of block** ] (or select **New > \[Type of block]** in the shortcut menu).
4. In the dialog box, specify the properties of the block:
   * In the **For layout** list, select the layout alternative where the search area is specified.
   * if the region of the block will coincide with the region of an element, select Source element and click <img src="https://mintcdn.com/abbyy/fmgRWFNHKYN2MLSg/images/flexi-capture/fls/Button_Search.gif?s=36d8764847225cffab245081f5274192" alt="" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="31" height="18" data-path="images/flexi-capture/fls/Button_Search.gif" />. In the Select Element dialog box, select the element whose region coincides with the region of the block. If you select a repeating group as a reference element, select its instance from the Repeating instance drop-down list. When selecting values for*AllInstances*, check the Has repeating instances option in the properties of the block, as in this case the block region may be discontinuous.\
     **Note.** To facilitate recognition, the region of a text block is one dot larger in each direction than the region of the source element.
   * if the region of the block does not coincide with the regions of any elements, select Expression and enter code in the Expression field. Click Check to check the code for errors.

<Note>
  You can create blocks before you have created elements, but in this case you can specify the location of the blocks on the image only by directly entering their coordinates. However, in most cases block coordinates are unpredictable and the locations of the blocks can only be described through the locations of image objects.
</Note>

## To edit the properties of a block:

1. Switch to the **FlexiLayout** window.
2. Select the block whose properties you wish to edit.
3. Right-click the block and select Properties... from the shortcut menu.\
   **Note.** You can also display the **Properties** dialog box by double-clicking the block.
4. Make the necessary changes.\
   **Note.** You can only change the name and region of a block. You cannot change the type of a block.

## To delete a block:

1. Switch to the **FlexiLayout** window.
2. Select the block you wish to delete. To select multiple blocks, hold the **Ctrl** key and click the blocks you want to delete. To select several consecutive blocks in the branch, hold the **Shift** key and click the first and last block you want to delete.
3. Right-click the block and select Delete from the shortcut menu.
