---
title: "Aspose::Pdf::Text::TabStops::Add method"
url: "https://reference.aspose.com/pdf/cpp/aspose.pdf.text/tabstops/add/"
product: "Aspose.PDF for C++ API Reference"
description: "Aspose::Pdf::Text::TabStops::Add method. Initializes a new instance of the TabStop class and add it to the TabStops collection in C++."
---

## TabStops::Add() method


Initializes a new instance of the [TabStop](../../tabstop/) class and add it to the [TabStops](../) collection.

```cpp
System::SharedPtr<TabStop> Aspose::Pdf::Text::TabStops::Add()
```


### ReturnValue

The new [TabStop](../../tabstop/) object.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [TabStop](../../tabstop/)
* Class [TabStops](../)
* Namespace [Aspose::Pdf::Text](../../)
* Library [Aspose.PDF for C++](../../../)
## TabStops::Add(const System::SharedPtr\<TabStop\>\&) method


Add instance of the [TabStop](../../tabstop/) class to the [TabStops](../) collection.

```cpp
void Aspose::Pdf::Text::TabStops::Add(const System::SharedPtr<TabStop> &tabStop)
```


| Parameter | Type | Description |
| --- | --- | --- |
| tabStop | const System::SharedPtr\<TabStop\>\& | The [TabStop](../../tabstop/) object. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [TabStop](../../tabstop/)
* Class [TabStops](../)
* Namespace [Aspose::Pdf::Text](../../)
* Library [Aspose.PDF for C++](../../../)
## TabStops::Add(float) method


Initializes a new instance of the [TabStop](../../tabstop/) class with specified position and add it to the [TabStops](../) collection.

```cpp
System::SharedPtr<TabStop> Aspose::Pdf::Text::TabStops::Add(float position)
```


| Parameter | Type | Description |
| --- | --- | --- |
| position | float | The position of the tab stop. |

### ReturnValue

The new [TabStop](../../tabstop/) object.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [TabStop](../../tabstop/)
* Class [TabStops](../)
* Namespace [Aspose::Pdf::Text](../../)
* Library [Aspose.PDF for C++](../../../)
## TabStops::Add(float, TabLeaderType) method


Initializes a new instance of the [TabStop](../../tabstop/) class with specified position and leader type and add it to the [TabStops](../) collection.

```cpp
System::SharedPtr<TabStop> Aspose::Pdf::Text::TabStops::Add(float position, TabLeaderType leaderType)
```


| Parameter | Type | Description |
| --- | --- | --- |
| position | float | The position of the tab stop. |
| leaderType | TabLeaderType | The leader type of the tab stop. |

### ReturnValue

The new [TabStop](../../tabstop/) object.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [TabStop](../../tabstop/)
* Enum [TabLeaderType](../../tableadertype/)
* Class [TabStops](../)
* Namespace [Aspose::Pdf::Text](../../)
* Library [Aspose.PDF for C++](../../../)
