com.aspose.tasks

Interfaces

Classes

Exceptions

Class TableTextStyle


  • public class TableTextStyle
    extends TextStyle

    Represents a text style in a view table.

    • Constructor Detail

      • TableTextStyle

        public TableTextStyle​(int rowUid)

        Initializes a new instance of the TableTextStyle class.

        Parameters:
        rowUid - A specified row unique id.
      • TableTextStyle

        public TableTextStyle​(int rowUid,
                              FontDescriptor font)

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

        Parameters:
        rowUid - A specified row unique id.
        font - A font on which a text style is based on.
      • TableTextStyle

        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:
        rowUid - A specified row unique id.
        fontSize - Size of a font on which a text style is based on.
        fontStyle - Font style.
      • TableTextStyle

        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:
        rowUid - A specified row unique id.
        fontStyle - Font style.
    • Method Detail

      • getField

        public final int getField()

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

        Returns:
        a field the style is to be applied to.
      • setField

        public final void setField​(int value)

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

        Parameters:
        value - a field the style is to be applied to.
      • getItemType

        public int getItemType()
        Returns text item type.
        Overrides:
        getItemType in class TextStyle
        Returns:
        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:
        a row unique id.