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()

        Initializes a new instance of the TextStyle class.

    • Method Detail

      • dispose

        @Deprecated
        public final void dispose()
        Deprecated. This method is not used anymore and will be deleted in future releases

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

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

        public final Color getBackgroundColor()

        Gets background color of the text style. Color(getColor()/setColor(Color)).

        Returns:
        background color of the text style.
      • setBackgroundColor

        public final void setBackgroundColor(Color value)

        Sets background color of the text style. Color(getColor()/setColor(Color)).

        Parameters:
        value - background color of the text style.
      • 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).