TabCollection module

class TabCollection.TabCollection

Bases: DocumentSerializableCollection

Represents a collection of Tab objects for paragraph or paragraph format.

AddTab

Adds a Tab.

Returns:

The added Tab.

Clear()

Removes all the tabs from the tab collection.

Equals

Determines whether the current TabCollection is equal to the specified object.

Parameters:

obj – The object to compare with the current TabCollection.

Returns:

True if the current TabCollection is equal to the specified object, False otherwise.

RemoveAt(index: int)

Removes the tab at the specified index from the tab collection.

Parameters:

index – The index of the tab to remove.

get_Item(index: int) Tab

Gets the Tab at the specified index.

Parameters:

index – The index of the Tab.

Returns:

The Tab at the specified index.