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

# CreateColumn Method of the TableBlockDefinition Object

This method creates a column in the table block of a Document Definition at the specified coordinate.

> [!NOTE]
>
> For a column to be created, there must be no other column at the specified coordinate.

## Syntax

```vb Visual Basic .NET theme={null}
Function CreateColumn( _
  X    As Integer, _
  Type As BlockTypeEnum _
) As BlockDefinition
```

```cpp C++ theme={null}
HRESULT CreateColumn(
  int                X,
  BlockTypeEnum      Type,
  IBlockDefinition** result
);
```

## Parameters

**X**

\[in] This variable contains the value of the X-coordinate at which the column will be added. The coordinate must be greater than the coordinate of the left border of the existing right column and less than the coordinate of the right border of the existing left column.

**Type**

\[in] This variable specifies the block type. See the descriptions of the [**BlockTypeEnum**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/blocktypeenum.md) constants.

> [!NOTE]
>
> The column being created can be of the following block types: text, barcode, checkmark, picture (the **BT\_Text**, **BT\_Barcode**, **BT\_Checkmark**, **BT\_Picture** constants of the [BlockTypeEnum](https://docs.abbyy.com/flexi-capture/sdk/api-reference/blocktypeenum.md)).

**result**

\[out, retval] A pointer to the [**IBlockDefinition**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/blockdefinition.md)**\*** variable that receives the interface pointer for the added column.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## See also

[**TableBlockDefinition**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/tableblockdefinition.md)
