Tab

Inheritance: java.lang.Object, com.aspose.slides.PVIObject

All Implemented Interfaces: com.aspose.slides.ITab

public final class Tab extends PVIObject implements ITab

Represents a tabulation for a text.

Constructors

Constructor Description
Tab(double position, int align) Creates new Tab

Methods

Method Description
getPosition() Returns or sets position of a tab.
setPosition(double value) Returns or sets position of a tab.
getAlignment() Returns or sets align style of a tab.
setAlignment(int value) Returns or sets align style of a tab.
compareTo(Object obj) Compares the current instance with another object of the same type.

Tab(double position, int align)

public Tab(double position, int align)

Creates new Tab

Parameters:

Parameter Type Description
position double Tab position.
align int Align.

getPosition()

public final double getPosition()

Returns or sets position of a tab. Assigning this property can change tab’s index in collection and invalidate Enumerator. Read/write double.

Returns: double

setPosition(double value)

public final void setPosition(double value)

Returns or sets position of a tab. Assigning this property can change tab’s index in collection and invalidate Enumerator. Read/write double.

Parameters:

Parameter Type Description
value double

getAlignment()

public final int getAlignment()

Returns or sets align style of a tab. Read/write TabAlignment.

Returns: int

setAlignment(int value)

public final void setAlignment(int value)

Returns or sets align style of a tab. Read/write TabAlignment.

Parameters:

Parameter Type Description
value int

compareTo(Object obj)

public final int compareTo(Object obj)

Compares the current instance with another object of the same type.

Parameters:

Parameter Type Description
obj java.lang.Object An object to compare with this instance.

Returns: int - 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.

```