TableTextStyle
Inheritance: java.lang.Object, com.aspose.tasks.TextStyle
public class TableTextStyle extends TextStyle
Represents a text style in a view table.
Constructors
Constructor | Description |
---|---|
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
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
rowUid | int | A 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:
Parameter | Type | Description |
---|---|---|
rowUid | int | A specified row unique id. |
font | FontDescriptor | A 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:
Parameter | Type | Description |
---|---|---|
rowUid | int | A specified row unique id. |
fontSize | float | Size of a font on which a text style is based on. |
fontStyle | int | Font 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:
Parameter | Type | Description |
---|---|---|
rowUid | int | A specified row unique id. |
fontStyle | int | Font 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:
Parameter | Type | Description |
---|---|---|
value | int | a field the style is to be applied to. |