Class TextStyle
- java.lang.Object
-
- com.aspose.tasks.TextStyle
-
- Direct Known Subclasses:
TableTextStyle
public class TextStyle extends Object
Change the visual style of the text for an item in the project view.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorgetBackgroundColor()Gets background color of the text style.intgetBackgroundPattern()Gets background pattern of the text style.ColorgetColor()Gets color of the text.StringgetFontFamily()Returns the font family of the text style.intgetFontStyle()intgetItemType()GetsTextItemTypeof the text style.floatgetSizeInPoints()Gets size in points of the text style font.voidsetBackgroundColor(Color value)Sets background color of the text style.voidsetBackgroundPattern(int value)Sets background pattern of the text style.voidsetColor(Color value)Sets color of the text.voidsetFontFamily(String familyName)Sets the font family of the text style.voidsetFontStyle(int value)voidsetItemType(int value)SetsTextItemTypeof the text style.voidsetSizeInPoints(float value)Sets size in points of the text style font.
-
-
-
Constructor Detail
-
TextStyle
public TextStyle()
Initializes a new instance of the
TextStyleclass.
-
-
Method Detail
-
getBackgroundColor
public final Color getBackgroundColor()
Gets background color of the text style.
Color(getBackgroundColor()/setBackgroundColor(java.awt.Color)).- Returns:
- background color of the text style.
-
setBackgroundColor
public final void setBackgroundColor(Color value)
Sets background color of the text style.
Color(getBackgroundColor()/setBackgroundColor(java.awt.Color)).- Parameters:
value- background color of the text style.
-
getBackgroundPattern
public final int getBackgroundPattern()
Gets background pattern of the text style.
BackgroundPattern(getBackgroundPattern()/setBackgroundPattern(int)).- Returns:
- background pattern 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.
-
getFontStyle
public final int getFontStyle()
Gets
FontStyle(getFontStyle()/setFontStyle(int)) of the text style font.- Returns:
FontStyle(getFontStyle()/setFontStyle(int)) of the text style font.
-
setFontStyle
public final void setFontStyle(int value)
Sets
FontStyle(getFontStyle()/setFontStyle(int)) of the text style font.- Parameters:
value-FontStyle(getFontStyle()/setFontStyle(int)) of the text style font.
-
getItemType
public int getItemType()
Gets
TextItemTypeof the text style.- Returns:
TextItemTypeof the text style.
-
setItemType
public void setItemType(int value)
Sets
TextItemTypeof the text style.- Parameters:
value-TextItemTypeof 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).
-
-