public final class TabStop
extends java.lang.Object
implements java.lang.Cloneable
TabStopCollection collection.
To learn more, visit the Aspose.Words Document Object Model (DOM) documentation article.
Normally, a tab stop specifies a position where a tab stop exists. But because tab stops can be inherited from parent styles, it might be needed for the child object to define explicitly that there is no tab stop at a given position. To clear an inherited tab stop at a given position, create a TabStop object and set getAlignment() / setAlignment(int) to TabAlignment.Clear.
For more information see TabStopCollection.
| Constructor and Description |
|---|
TabStop(double position)
Initializes a new instance of this class.
|
TabStop(double position,
int alignment,
int leader)
Initializes a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(TabStop rhs)
Compares with the specified TabStop.
|
int |
getAlignment()
Gets the alignment of text at this tab stop.
|
int |
getLeader()
Gets the type of the leader line displayed under the tab character.
|
double |
getPosition()
Gets the position of the tab stop in points.
|
int |
hashCode() |
boolean |
isClear()
Returns true if this tab stop clears any existing tab stops in this position.
|
protected java.lang.Object |
memberwiseClone() |
void |
setAlignment(int value)
Sets the alignment of text at this tab stop.
|
void |
setLeader(int value)
Sets the type of the leader line displayed under the tab character.
|
public TabStop(double position)
public TabStop(double position,
int alignment,
int leader)
public final boolean equals(TabStop rhs)
public final int hashCode()
hashCode in class java.lang.Objectpublic final double getPosition()
public final int getAlignment()
TabAlignment constants.public final void setAlignment(int value)
value - The alignment of text at this tab stop. The value must be one of TabAlignment constants.public final int getLeader()
TabLeader constants.public final void setLeader(int value)
value - The type of the leader line displayed under the tab character. The value must be one of TabLeader constants.public final boolean isClear()
protected final java.lang.Object memberwiseClone()