TabStopCollection Class
A collection of TabStop objects that represent custom tabs for a paragraph or a style.
Inheritance Hierarchy

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.9
Syntax
[SerializableAttribute]
public class TabStopCollection : InternableComplexAttr

The TabStopCollection type exposes the following members.

Properties
Methods
  NameDescription
Public methodCode exampleAdd(TabStop)
Adds or replaces a tab stop in the collection.
Public methodCode exampleAdd(Double, TabAlignment, TabLeader)
Adds or replaces a tab stop in the collection.
Public methodAfter
Gets a first tab stop to the right of the specified position.
Public methodBefore
Gets a first tab stop to the left of the specified position.
Public methodCode exampleClear
Deletes all tab stop positions.
Public methodEquals(Object)
Determines whether the specified object is equal in value to the current object.
(Overrides ObjectEquals(Object).)
Public methodEquals(TabStopCollection)
Determines whether the specified TabStopCollection is equal in value to the current TabStopCollection.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for this type.
(Overrides ObjectGetHashCode.)
Public methodCode exampleGetIndexByPosition
Gets the index of a tab stop with the specified position in points.
Public methodCode exampleGetPositionByIndex
Gets the position (in points) of the tab stop at the specified index.
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodNotifyChanging (Inherited from InternableComplexAttr.)
Public methodCode exampleRemoveByIndex
Removes a tab stop at the specified index from the collection.
Public methodCode exampleRemoveByPosition
Removes a tab stop at the specified position from the collection.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Remarks

In Microsoft Word documents, a tab stop can be defined in the properties of a paragraph style or directly in the properties of a paragraph. A style can be based on another style. Therefore, the complete set of tab stops for a given object is a combination of tab stops defined directly on this object and tab stops inherited from the parent styles.

In Aspose.Words, when you obtain a TabStops collection for a paragraph or a style, it contains only the custom tab stops defined directly for this paragraph or style. The collection does not include tab stops defined in the parent styles or default tab stops.

See Also