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 and Description |
---|
TextStyle()
Initializes a new instance of the
TextStyle class. |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Deprecated.
This method is not used anymore and will be deleted in future releases
|
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()
Returns
FontStyle of the text style font. |
int |
getItemType()
Gets
TextItemType 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)
Sets
TextItemType of the text style. |
void |
setSizeInPoints(float value)
Sets size in points of the text style font.
|
public TextStyle()
Initializes a new instance of the TextStyle
class.
@Deprecated public final void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
dispose
in interface com.aspose.ms.System.IDisposable
public final Color getBackgroundColor()
Gets background color of the text style.
Color
(getColor()
/setColor(Color)
).
public final void setBackgroundColor(Color value)
Sets background color of the text style.
Color
(getColor()
/setColor(Color)
).
value
- background color of the text style.public final int getBackgroundPattern()
Gets background pattern of the text style.
BackgroundPattern
(getBackgroundPattern()
/setBackgroundPattern(int)
).
public final void setBackgroundPattern(int value)
Sets background pattern of the text style.
BackgroundPattern
(getBackgroundPattern()
/setBackgroundPattern(int)
).
value
- background pattern of the text style.public final Color getColor()
Gets color of the text.
public final void setColor(Color value)
Sets color of the text.
value
- color of the text.public int getFontStyle()
Returns FontStyle
of the text style font.
FontStyle
).public final void setFontStyle(int value)
Sets FontStyle
(getFontStyle()
/setFontStyle(int)
) of the text style font.
value
- FontStyle
(getFontStyle()
/setFontStyle(int)
) of the text style font.public int getItemType()
Gets TextItemType
of the text style.
TextItemType
of the text style.public void setItemType(int value)
Sets TextItemType
of the text style.
value
- TextItemType
of the text style.public final float getSizeInPoints()
Gets size in points of the text style font.
public final void setSizeInPoints(float value)
Sets size in points of the text style font.
value
- size in points of the text style font.public final String getFontFamily()
String
).public final void setFontFamily(String familyName)
familyName
- the font family of the text style (String
).Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.