|
ASPOSE home | ||||||||
java.lang.Object
com.aspose.words.TabStops
public class TabStops
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 combintation 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.
| Property Getters/Setters Summary | ||
|---|---|---|
int | getCount() | |
| Gets the number of tab stops in the collection. | ||
TabStop | get(double position) | |
| Gets a tab stop at the specified position. | ||
TabStop | get(int index) | |
| Gets a tab stop at the given index. | ||
| Method Summary | ||
|---|---|---|
void | add(TabStop tabStop) | |
| Adds or replaces a tab stop in the collection. | ||
void | add(double position, byte alignment, byte leader) | |
| Adds or replaces a tab stop in the collection. | ||
TabStop | after(double position) | |
| Gets a first tab stop to the right of the specified position. | ||
TabStop | before(double position) | |
| Gets a first tab stop to the left of the specified position. | ||
Aspose.Words.IComplexAttr | deepClone() | |
| Reserved for internal use. | ||
double | getPositionByIndex(int index) | |
| Gets the position (in points) of the tab stop at the specified index. | ||
boolean | isInherited() | |
| Reserved for internal use. | ||
void | removeByIndex(int index) | |
| Removes a tab stop at the specified index from the collection. | ||
void | removeByPosition(double position) | |
| Removes a tab stop at the specified position from the collection. | ||
| Property Getters/Setters Detail |
|---|
getCount | |
public int getCount() | |
get | |
public TabStop get(int index) | |
index - An index into the collection of tab stops.get | |
public TabStop get(double position) | |
position - The position (in points) of the tab stop.| Method Detail |
|---|
getPositionByIndex | |
public double getPositionByIndex(int index) | |
index - An index into the collection of tab stops.add | |
public void add(TabStop tabStop) | |
If a tab stop already exists at the specified position, it is replaced.
tabStop - A tab stop object to add.add | |
public void add(double position, byte alignment, byte leader) | |
If a tab stop already exists at the specified position, it is replaced.
position - A position (in points) where to add the tab stop.alignment - A leader - A removeByPosition | |
public void removeByPosition(double position) | |
position - The position (in points) of the tab stop to remove.removeByIndex | |
public void removeByIndex(int index) | |
index - An index into the collection of tab stops.after | |
public TabStop after(double position) | |
Skips tab stops with Alignment set to TabAlignment.Bar.
position - The reference position (in points).before | |
public TabStop before(double position) | |
Skips tab stops with Alignment set to TabAlignment.Bar.
position - The reference position (in points).deepClone | |
public Aspose.Words.IComplexAttr deepClone()
throws java.lang.CloneNotSupportedException | |
isInherited | |
public boolean isInherited() | |
|
ASPOSE home | ||||||||