public class TextStyle extends Object
Class representing checkbox field
| Modifier and Type | Method and Description |
|---|---|
TextAlignment |
getAlignment()
Deprecated.
|
Color |
getColor()
Get the Color of the text.
|
String |
getFontName()
Get the Name of the font.
|
double |
getFontSize()
Get the Fonts size.
|
HorizontalAlignment |
getHorizontalAlignment()
Text alignment.
|
void |
setAlignment(TextAlignment value)
Deprecated.
|
void |
setColor(Color value)
Set the Color of the text.
|
void |
setFontName(String value)
Set the Name of the font.
|
void |
setFontSize(double value)
Set the Fonts size.
|
void |
setHorizontalAlignment(HorizontalAlignment value)
Text alignment.
|
String |
toString()
String representation of TextStyle.
|
public String getFontName()
Get the Name of the font.
public void setFontName(String value)
Set the Name of the font.
value - String valuepublic double getFontSize()
Get the Fonts size.
public void setFontSize(double value)
Set the Fonts size.
value - double value@Deprecated public TextAlignment getAlignment()
Gets horizontal alignment of the text.
TextAlignment@Deprecated public void setAlignment(TextAlignment value)
Sets horizontal alignment of the text.
value - TextAlignment valueTextAlignmentpublic HorizontalAlignment getHorizontalAlignment()
Text alignment. Valid values are: Left, Center, Rigth.
HorizontalAlignmentpublic void setHorizontalAlignment(HorizontalAlignment value)
Text alignment. Valid values are: Left, Center, Rigth.
value - HorizontalAlignment valueHorizontalAlignmentpublic Color getColor()
Get the Color of the text.
public void setColor(Color value)
Set the Color of the text.
value - Color objectCopyright © 2025 Aspose. All Rights Reserved.