TableTextStyle

Inheritance: java.lang.Object, com.aspose.tasks.TextStyle

public class TableTextStyle extends TextStyle

Represents a text style in a view table.

Constructors

ConstructorDescription
TableTextStyle(int rowUid)Initializes a new instance of the TableTextStyle class.
TableTextStyle(int rowUid, FontDescriptor font)Initializes a new instance of the TableTextStyle class with the specified font.
TableTextStyle(int rowUid, float fontSize, int fontStyle)Initializes a new instance of the TableTextStyle class with the specified font size and font style.
TableTextStyle(int rowUid, int fontStyle)Initializes a new instance of the TableTextStyle class with the default font settings and the specified font style.

Methods

MethodDescription
getField()Gets a field the style is to be applied to.
getItemType()Returns text item type.
getRowUid()Gets a row unique id.
setField(int value)Sets a field the style is to be applied to.

TableTextStyle(int rowUid)

public TableTextStyle(int rowUid)

Initializes a new instance of the TableTextStyle class.

Parameters:

ParameterTypeDescription
rowUidintA specified row unique id.

TableTextStyle(int rowUid, FontDescriptor font)

public TableTextStyle(int rowUid, FontDescriptor font)

Initializes a new instance of the TableTextStyle class with the specified font.

Parameters:

ParameterTypeDescription
rowUidintA specified row unique id.
fontFontDescriptorA font on which a text style is based on.

TableTextStyle(int rowUid, float fontSize, int fontStyle)

public TableTextStyle(int rowUid, float fontSize, int fontStyle)

Initializes a new instance of the TableTextStyle class with the specified font size and font style.

Parameters:

ParameterTypeDescription
rowUidintA specified row unique id.
fontSizefloatSize of a font on which a text style is based on.
fontStyleintFont style.

TableTextStyle(int rowUid, int fontStyle)

public TableTextStyle(int rowUid, int fontStyle)

Initializes a new instance of the TableTextStyle class with the default font settings and the specified font style.

Parameters:

ParameterTypeDescription
rowUidintA specified row unique id.
fontStyleintFont style.

getField()

public final int getField()

Gets a field the style is to be applied to. Field(getField()/setField(int)).

Returns: int - a field the style is to be applied to.

getItemType()

public int getItemType()

Returns text item type.

Returns: int - TextItemType enumerated type value.

getRowUid()

public final int getRowUid()

Gets a row unique id.


Return -1 if the style is to be applied to all rows of a view.

Returns: int - a row unique id.

setField(int value)

public final void setField(int value)

Sets a field the style is to be applied to. Field(getField()/setField(int)).

Parameters:

ParameterTypeDescription
valueinta field the style is to be applied to.