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

# SetType Method of the TableSeparator Object

This method sets separator type. Separators may be of five types as defined by [TableSeparatorTypeEnum](/fine-reader/engine/api-reference/enumerations/tableseparatortypeenum) enumeration constants.

## Syntax

### C++

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

### C\#

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

### Visual Basic .NET

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

## Parameters

Coord

\[in] A variable that contains coordinate of the beginning of the separator segment in a base grid. By the base grid here we assume the grid formed by table borders and separators. Each vertical separator increments the horizontal coordinate by one, and each horizontal separator increments the vertical coordinate by one. Coordinate axes are oriented from left to right and from top to bottom.

NewType

\[in]  A variable of type [TableSeparatorTypeEnum](/fine-reader/engine/api-reference/enumerations/tableseparatortypeenum) that contains the value for the new separator type.

Count

\[in] A variable that contains a number of segments for which to set the new type. This is optional parameter. Default value for it is 1.

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

Separator type is not an attribute of the whole separator but of a single separator segment between the adjacent intersections with perpendicular separators. Therefore one of the input parameters for this method is Coord parameter. Separator type is set for the segment with coordinates \[Coord,Coord+Count] in a base grid. It is prohibited to change the type of separator inside a merged cells (it should be TST\_Absent), and it is prohibited to set the type of separator to the TST\_Absent value.

## See also

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

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