TabStopCollection
Overview
TabStopCollection is a class in Aspose.Words FOSS for Java.
Inherits from: InternableComplexAttr, IExpandableAttr, Cloneable.
TabStopCollection offers methods to add, remove, and query TabStop objects, and supports cloning and expansion of complex attributes.
Edition status of its 13 listed members (a property and its accessor methods are listed separately, overloads once): 13 not yet exercised by a verified example.
This class declares 15 methods for TabStopCollection objects in Java programs.
Available methods include: add, after, before, clear, equals, get, getCount, getIndexByPosition, getPositionByIndex, hashCode, removeByIndex, removeByPosition.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: count.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Gets the number of tab stops in the collection. |
Methods
| Signature | Description |
|---|---|
equals(rhs: TabStopCollection) → boolean | Determines whether the specified TabStopCollection is equal in value to the current TabStopCollection. |
equals(obj: Object) → boolean | Determines whether the specified object is equal in value to the current object. |
hashCode() → int | Serves as a hash function for this type. |
getCount() → int | Gets the number of tab stops in the collection. |
get(index: int) → TabStop | Gets a tab stop at the given index. |
get(position: double) → TabStop | Calls get(position) on this TabStopCollection instance. |
clear() | Deletes all tab stop positions. |
getPositionByIndex(index: int) → double | Gets the position (in points) of the tab stop at the specified index. |
getIndexByPosition(position: double) → int | Gets the index of a tab stop with the specified position in points. |
add(tabStop: TabStop) | Adds or replaces a tab stop in the collection. |
add(position: double, alignment: int, leader: int) | Adds or replaces a tab stop in the collection. |
removeByPosition(position: double) | Removes a tab stop at the specified position from the collection. |
removeByIndex(index: int) | Removes a tab stop at the specified index from the collection. |
after(position: double) → TabStop | Gets a first tab stop to the right of the specified position. |
before(position: double) → TabStop | Gets a first tab stop to the left of the specified position. |