---
Product: Aspose.Words
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/words/python/tabstopcollection
---

# TabStopCollection

## Overview

`TabStopCollection` is a class in Aspose.Words FOSS for Python.
Inherits from: `BaseModel`.

TabStopCollection.add(position, alignment, leader) creates a new TabStop with the specified position, alignment (e.g., TabAlignment.LEFT) and leader (e.g., TabLeader.DOT).

This class provides 5 methods for working with TabStopCollection objects in Python programs.
Available methods include: `add`, `after`, `before`, `clear`, `remove_by_position`.
All public members are accessible to any Python application after installing the Aspose.Words FOSS for Python package.
Properties: `tab_stops`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `tab_stops` | `list[TabStop]` | Read | Gets the tab stops. |

## Methods

| Signature | Description |
|-----------|-------------|
| `clear()` | Calls clear on this TabStopCollection instance. |
| `add(position: float, alignment: int, leader: int)` | Creates a new TabStop with the specified position, alignment (e.g., TabAlignment.LEFT) and leader (e.g., TabLeader.DOT) |
| `remove_by_position(position: float)` | Calls remove_by_position(position) on this TabStopCollection instance. |
| `before(pos: float)` → `TabStop \| None` | Returns the nearest TabStop whose position is less than the given value, or None if none exist |
| `after(pos: float)` → `TabStop \| None` | Calls after(pos) on this TabStopCollection instance. |

## See Also

- [Aspose.Words for Python — Enterprise API Reference](https://reference.aspose.com/words/python-net/aspose.words/tabstopcollection/__getitem__/)