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

NameTypeAccessDescription
tab_stopslist[TabStop]ReadGets the tab stops.

Methods

SignatureDescription
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 | NoneReturns the nearest TabStop whose position is less than the given value, or None if none exist
after(pos: float)TabStop | NoneCalls after(pos) on this TabStopCollection instance.

See Also

 English