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

# TableSeparator オブジェクトの SetType メソッド

> ABBYY FineReader Engine API における TableSeparator オブジェクトの SetType メソッド。TableSeparatorTypeEnum 定数を使用して区切り線セグメントの型を設定します。

このメソッドは区切り線の型を設定します。区切り線の型には、[TableSeparatorTypeEnum](/ja/fine-reader/engine/api-reference/enumerations/tableseparatortypeenum) の列挙定数で定義される 5 種類があります。

<div id="syntax">
  ## 構文
</div>

<div id="c">
  ### C++
</div>

```cpp theme={null}
HRESULT SetType(
  int                    Coord,
  TableSeparatorTypeEnum NewType,
  int                    Count
);
```

### C\#

```csharp theme={null}
void SetType(
  int                    Coord,
  TableSeparatorTypeEnum NewType,
  int                    Count
);
```

<div id="visual-basic-net">
  ### Visual Basic .NET
</div>

```vb theme={null}
Sub SetType( _
  Coord As Integer, _
  NewType As TableSeparatorTypeEnum, _
  [Count As Integer = 1] _
)
```

<div id="parameters">
  ## パラメーター
</div>

Coord

\[in] ベースグリッドにおける区切り線セグメントの開始位置の座標を格納する変数です。ここでいうベースグリッドとは、表の境界線と区切り線によって形成されるグリッドを指します。各縦方向の区切り線は水平方向の座標を 1 ずつ増やし、各横方向の区切り線は垂直方向の座標を 1 ずつ増やします。座標軸の向きは、左から右、上から下です。

NewType

\[in] 新しい区切り線の型を表す値を格納する、[TableSeparatorTypeEnum](/ja/fine-reader/engine/api-reference/enumerations/tableseparatortypeenum) 型の変数です。

Count

\[in] 新しい型を設定するセグメント数を格納する変数です。これは省略可能なパラメーターです。既定値は 1 です。

<div id="return-values">
  ## 戻り値
</div>

このメソッドに固有の戻り値はありません。[ABBYY FineReader Engine 関数の標準戻り値](/ja/fine-reader/engine/api-reference/return-codes)を返します。

<div id="remarks">
  ## 注記
</div>

区切り線の型は区切り線全体の属性ではなく、直交する区切り線との隣接する交点同士の間にある 1 つの区切り線セグメントの属性です。そのため、このメソッドの入力パラメーターの 1 つは Coord パラメーターです。区切り線の型は、ベースグリッド内の座標 \[Coord,Coord+Count] に対応するセグメントに設定されます。結合セル内では区切り線の型を変更することはできません (この場合は TST\_Absent である必要があります) 。また、区切り線の型を TST\_Absent に設定することもできません。

<div id="see-also">
  ## 関連項目
</div>

[TableSeparatorTypeEnum](/ja/fine-reader/engine/api-reference/enumerations/tableseparatortypeenum)

[ITableSeparator::Type](/ja/fine-reader/engine/api-reference/layout-related-objects/tableseparator/type-property)
