com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class TextStyle

  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable
    Direct Known Subclasses:
    TableTextStyle


    public class TextStyle
    extends Object
    implements com.aspose.ms.System.IDisposable

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

    • Constructor Detail

      • TextStyle

        public TextStyle()
    • Method Detail

      • getBackgroundColor

        public Color getBackgroundColor()
        Gets the background color of the text style.
        Returns:
        the color (Color).
      • setBackgroundColor

        public void setBackgroundColor(Color value)
        Sets the background color of the text style.
        Parameters:
        value - background color.
      • getBackgroundPattern

        public int getBackgroundPattern()

        Gets background pattern of the text style. BackgroundPattern.

        Returns:
        BackgroundPattern enumerated value.
      • setBackgroundPattern

        public void setBackgroundPattern(int value)

        Gets background pattern of the text style. BackgroundPattern.

        Parameters:
        value - BackgroundPattern enumerated value.
      • getColor

        public Color getColor()
        Gets the color of the text style.
        Returns:
        the color (Color).
      • setColor

        public void setColor(Color value)
        Sets the color of the text style.
        Parameters:
        value - the color (Color).
      • getFontFamily

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

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

        public int getFontStyle()

        Returns FontStyle of the text style font.

        Returns:
        the font style (FontStyle).
      • setFontStyle

        public void setFontStyle(int value)
        Sets the font style of the text style.
        Parameters:
        value - the font style (FontStyle).
      • getItemType

        public int getItemType()

        TextItemType of the text style.

        Returns:
        the text item type (TextItemType).
      • setItemType

        public void setItemType(int value)
        Sets the text item type of the text style.
        Parameters:
        value - the text item type (TextItemType).
      • getSizeInPoints

        public float getSizeInPoints()

        Size in points of the text style font.

        Returns:
        font size.
      • setSizeInPoints

        public void setSizeInPoints(float value)
        Sets the size in points of the text style.
        Parameters:
        value - the size in points.
      • dispose

        public void dispose()

        Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

        Specified by:
        dispose in interface com.aspose.ms.System.IDisposable