com.spire.presentation
Class TabStop

java.lang.Object
  extended by com.spire.presentation.TabStop
All Implemented Interfaces:
java.lang.Comparable

public final class TabStop
extends java.lang.Object
implements java.lang.Comparable

Represents a tabulation for a text.


Constructor Summary
TabStop(double position, TabAlignmentType align)
          Initializes a new instance of the Tab class.
 
Method Summary
 int compareTo(java.lang.Object obj)
          Compares the current instance with another object of the same type.
 TabAlignmentType getAlignment()
          Gets align style of a tab.
 double getPosition()
          Gets position of a tab.
 void setAlignment(TabAlignmentType value)
          Sets align style of a tab.
 void setPosition(double value)
          Sets position of a tab.
 

Constructor Detail

TabStop

public TabStop(double position,
               TabAlignmentType align)
Initializes a new instance of the Tab class.

Parameters:
position - Position of the new tab.
align - Align style of the new tab.
Method Detail

getPosition

public double getPosition()
Gets position of a tab. Assigning this property can change tab's index in collection and invalidate Enumerator. Read/write .

Returns:

setPosition

public void setPosition(double value)
Sets position of a tab. Assigning this property can change tab's index in collection and invalidate Enumerator. Read/write .


getAlignment

public TabAlignmentType getAlignment()
Gets align style of a tab. Read/write .

Returns:

setAlignment

public void setAlignment(TabAlignmentType value)
Sets align style of a tab. Read/write .


compareTo

public int compareTo(java.lang.Object obj)
Compares the current instance with another object of the same type.

Parameters:
obj - An object to compare with this instance.
Returns:
A 32-bit integer that indicates the relative order of the comparands. The return value has these meanings: < 0 - This instance is less than obj.= 0 - This instance is equal to obj.> 0 - This instance is greater than obj.