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 Color
getBackgroundColor()
Gets background color of the text style.int
getBackgroundPattern()
Gets background pattern of the text style.Color
getColor()
Gets color of the text.String
getFontFamily()
Returns the font family of the text style.int
getFontStyle()
int
getItemType()
GetsTextItemType
of the text style.float
getSizeInPoints()
Gets size in points of the text style font.void
setBackgroundColor(Color value)
Sets background color of the text style.void
setBackgroundPattern(int value)
Sets background pattern of the text style.void
setColor(Color value)
Sets color of the text.void
setFontFamily(String familyName)
Sets the font family of the text style.void
setFontStyle(int value)
void
setItemType(int value)
SetsTextItemType
of the text style.void
setSizeInPoints(float value)
Sets size in points of the text style font.
-
-
-
Constructor Detail
-
TextStyle
public TextStyle()
Initializes a new instance of the
TextStyle
class.
-
-
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
TextItemType
of the text style.- Returns:
TextItemType
of the text style.
-
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
).
-
-