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

# AddNew Method of the SeparatorGroup Object

This method creates a separator block and inserts it into the specified position in the group.

## Syntax

### C++

```cpp theme={null}
HRESULT AddNew(
  int               Position,
  IRegion*          BlockRegion,
  ISeparatorBlock** Result
);
```

### C\#

```csharp theme={null}
SeparatorBlock AddNew(
  int    Position,
  Region BlockRegion
);
```

### Visual Basic .NET

```vb theme={null}
Function AddNew( _
  Position As Integer, _
  BlockRegion As Region _
) As SeparatorBlock
```

## Parameters

Position

\[in] This parameter specifies the index of the newly inserted block in the separator group. The value of the parameter must be in range from 0 to the value of the [ISeparatorGroup::Count](/fine-reader/engine/api-reference/layout-related-objects/separatorgroup#count) property. If the block with this index already exists in the group, the elements of the collection are shifted to the right. The element may also be inserted at the end of collection, in which case the value of this parameter must be equal to the value of the ISeparatorGroup::Count property.

BlockRegion

\[in] This variable refers to the [Region](/fine-reader/engine/api-reference/supplementary-objects-and-methods/region) object that specifies the region of the newly created separator block. This parameter may be 0, in which case the region of the new block will be set to the region of the separator group.

Result

\[out, retval] A pointer to [ISeparatorBlock](/fine-reader/engine/api-reference/layout-related-objects/separatorblock)\* pointer variable that receives the interface pointer of the new separator 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).

## See also

[SeparatorBlock](/fine-reader/engine/api-reference/layout-related-objects/separatorblock)

[SeparatorGroup](/fine-reader/engine/api-reference/layout-related-objects/separatorgroup)
