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

# InitializeGrid Method of the TableBlock Object

This method initializes table grid for the table block.

## Syntax

### C++

```cpp theme={null}
HRESULT InitializeGrid(
  IIntsCollection* HorzSeparators,
  IIntsCollection* VertSeparators
);
```

### C\#

```csharp theme={null}
void InitializeGrid(
  IIntsCollection HorzSeparators,
  IIntsCollection VertSeparators
);
```

### Visual Basic .NET

```vb theme={null}
Sub InitializeGrid( _
  HorzSeparators As IIntsCollection, _
  VertSeparators As IIntsCollection _
)
```

## Parameters

HorzSeparators

\[in] This variable refers to the [IntsCollection](/fine-reader/engine/api-reference/supplementary-objects-and-methods/intscollection) object that contains coordinates of internal horizontal separators for the table block.

VertSeparators

\[in] This variable refers to the [IntsCollection](/fine-reader/engine/api-reference/supplementary-objects-and-methods/intscollection) object that contains coordinates of internal vertical separators for the table block.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## Remarks

Table separators are initialized anew by a call to this method. Old table structure is destroyed. All coordinates of table separators must lay between the coordinates of the table borders; otherwise, an error code is returned. Note that only coordinates of internal separators should be passed in [IntsCollection](/fine-reader/engine/api-reference/supplementary-objects-and-methods/intscollection) objects, that is they should not include coordinates of table borders, although table borders are always present in collections of table separators of the table block itself. All new table cells that appear as the result of a call to this method are initialized with the attributes (for example, recognition parameters) of the cell that was in a left top corner of the previous table structure.

## See also

[TableBlock](/fine-reader/engine/api-reference/layout-related-objects/tableblock)
