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()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
Color |
getBackgroundColor()
Gets the background color of the text style.
|
int |
getBackgroundPattern()
Gets background pattern of the text style.
|
Color |
getColor()
Gets the color of the text style.
|
String |
getFontFamily()
Returns the font family of the text style.
|
int |
getFontStyle()
Returns
FontStyle of the text style font. |
int |
getItemType()
TextItemType of the text style. |
float |
getSizeInPoints()
Size in points of the text style font.
|
void |
setBackgroundColor(Color value)
Sets the background color of the text style.
|
void |
setBackgroundPattern(int value)
Gets background pattern of the text style.
|
void |
setColor(Color value)
Sets the color of the text style.
|
void |
setFontFamily(String familyName)
Sets the font family of the text style.
|
void |
setFontStyle(int value)
Sets the font style of the text style.
|
void |
setItemType(int value)
Sets the text item type of the text style.
|
void |
setSizeInPoints(float value)
Sets the size in points of the text style.
|
public void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
dispose
in interface com.aspose.ms.System.IDisposable
public Color getBackgroundColor()
Color
).public void setBackgroundColor(Color value)
value
- background color.public int getBackgroundPattern()
Gets background pattern of the text style.
BackgroundPattern
.
public void setBackgroundPattern(int value)
Gets background pattern of the text style.
BackgroundPattern
.
value
- BackgroundPattern enumerated value.public Color getColor()
Color
).public void setColor(Color value)
value
- the color (Color
).public String getFontFamily()
String
).public void setFontFamily(String familyName)
familyName
- the font family of the text style (String
).public int getFontStyle()
Returns FontStyle
of the text style font.
FontStyle
).public void setFontStyle(int value)
value
- the font style (FontStyle
).public int getItemType()
TextItemType
of the text style.
TextItemType
).public void setItemType(int value)
value
- the text item type (TextItemType
).public float getSizeInPoints()
Size in points of the text style font.
public void setSizeInPoints(float value)
value
- the size in points.Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.