com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class TextStyle

  • Direct Known Subclasses:
    TableTextStyle


    public class TextStyle
    extends Object

    Change the visual style of the text for an item in the project view.

    • Constructor Detail

      • TextStyle

        public TextStyle()

        Initializes a new instance of the TextStyle class.

    • Method Detail

      • setBackgroundPattern

        public final void setBackgroundPattern(int value)

        Sets background pattern of the text style. BackgroundPattern(getBackgroundPattern()/setBackgroundPattern(int)).

        Parameters:
        value - background pattern of the text style.
      • getColor

        public final Color getColor()

        Gets color of the text.

        Returns:
        color of the text.
      • setColor

        public final void setColor(Color value)

        Sets color of the text.

        Parameters:
        value - color of the text.
      • setItemType

        public void setItemType(int value)

        Sets TextItemType of the text style.

        Parameters:
        value - TextItemType of the text style.
      • getSizeInPoints

        public final float getSizeInPoints()

        Gets size in points of the text style font.

        Returns:
        size in points of the text style font.
      • setSizeInPoints

        public final void setSizeInPoints(float value)

        Sets size in points of the text style font.

        Parameters:
        value - size in points of the text style font.
      • getFontFamily

        public final String getFontFamily()
        Returns the font family of the text style.
        Returns:
        the font family of the text style (String).
      • setFontFamily

        public final void setFontFamily(String familyName)
        Sets the font family of the text style.
        Parameters:
        familyName - the font family of the text style (String).