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

ConstructorDescription
Tab(double position, int align)Creates new Tab

Methods

MethodDescription
getVersion()
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:

ParameterTypeDescription
positiondoubleTab position.
alignintAlign.

getVersion()

public long getVersion()

Version. Read-only long.

Returns: long

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:

ParameterTypeDescription
valuedouble

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:

ParameterTypeDescription
valueint

compareTo(Object obj)

public final int compareTo(Object obj)

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

Parameters:

ParameterTypeDescription
objjava.lang.ObjectAn 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.