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

This method creates a new [TabPosition](/fine-reader/engine/api-reference/text-related-objects/tabposition) object with specified properties and adds it at the end of the collection.

## Syntax

### C++

```cpp theme={null}
HRESULT AddNew(
   ParagraphTabAlignmentEnum   TabAlignment,
   TabLeaderTypeEnum           LeaderType,
   int                         Position,
   ITabPosition**              Result 
);
```

### C\#

```csharp theme={null}
TabPosition AddNew( 
  ParagraphTabAlignmentEnum   TabAlignment,
  TabLeaderTypeEnum           LeaderType,
  int                         Position
);
```

### Visual Basic .NET

```vb theme={null}
Function AddNew( _
  TabAlignment As ParagraphTabAlignmentEnum, _
  LeaderType As TabLeaderTypeEnum, _
  Position As Integer _
) As TabPosition
```

## Parameters

TabAlignment

\[in] Variable which specifies the type of alignment for a single tab stop. It may be set to one of the constants from the [ParagraphTabAlignmentEnum](/fine-reader/engine/api-reference/enumerations/paragraphtabalignmentenum).

LeaderType

\[in] Variable which specifies the type of the tab leaders. It may be set to one of the constants from the [TabLeaderTypeEnum](/fine-reader/engine/api-reference/enumerations/tableadertypeenum).

Position

\[in] Variable which specifies the position of the tab stop, counted from the left border of the paragraph in hundredth parts of point (point is 1/72").

Result

\[out, retval] A pointer to ITabPosition\* pointer variable that receives the interface pointer of the added [TabPosition](/fine-reader/engine/api-reference/text-related-objects/tabposition) object.

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

[Working with Collections](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-collections)

[TabPositions](/fine-reader/engine/api-reference/text-related-objects/tabpositions)
