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

# TableBlockDefinition オブジェクトの CreateColumn メソッド

このメソッドは、Document Definition のテーブルブロック内の指定した座標に列を作成します。

> [!NOTE]
>
> 列を作成するには、指定した座標に他の列が存在しないことが必要です。

## 構文

```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
);
```

## パラメーター

**X**

\[in] この変数には、列を追加する位置の X 座標の値が格納されます。この座標は、既存の右側の列の左境界の座標より大きく、かつ既存の左側の列の右境界の座標より小さい値である必要があります。

**Type**

\[in] この変数はブロック型を指定します。[**BlockTypeEnum**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/blocktypeenum.md) 定数の説明を参照してください。

> [!NOTE]
>
> 作成する列のブロック型には、テキスト、バーコード、チェックマーク、画像のいずれかを指定できます ([BlockTypeEnum](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/blocktypeenum.md) の **BT\_Text**、**BT\_Barcode**、**BT\_Checkmark**、**BT\_Picture** 定数) 。

**result**

\[out, retval] 追加された列のインターフェースポインターを受け取る [**IBlockDefinition**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/blockdefinition.md)\*\*\*\*\* 変数へのポインター。

## 戻り値

このメソッドには固有の戻り値はありません。[ABBYY FlexiCapture SDK 関数の標準の戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返します。

## 関連項目

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