TextStyle
Inheritance: java.lang.Object, com.aspose.pdf.TextStyle
public class TextStyle extends Object
Class representing checkbox field
Methods
| Method | Description |
|---|---|
| getAlignment | Gets horizontal alignment of the text. |
| getColor | Get the Color of the text. |
| getFontName | Get the Name of the font. |
| getFontSize | Get the Fonts size. |
| getHorizontalAlignment | Text alignment. Valid values are: Left, Center, Rigth. |
| setAlignment | Sets horizontal alignment of the text. |
| setColor | Set the Color of the text. |
| setFontName | Set the Name of the font. |
| setFontSize | Set the Fonts size. |
| setHorizontalAlignment | Text alignment. Valid values are: Left, Center, Rigth. |
| toString | String representation of TextStyle. |
getAlignment
@Deprecated public TextAlignment getAlignment()
Gets horizontal alignment of the text.
Returns: TextAlignment value @see TextAlignment
getColor
public Color getColor()
Get the Color of the text.
Returns: Color object
getFontName
public String getFontName()
Get the Name of the font.
Returns: String value
getFontSize
public double getFontSize()
Get the Fonts size.
Returns: double value
getHorizontalAlignment
public HorizontalAlignment getHorizontalAlignment()
Text alignment. Valid values are: Left, Center, Rigth.
Returns: HorizontalAlignment value @see HorizontalAlignment
setAlignment
Sets horizontal alignment of the text.
setColor
Set the Color of the text.
setFontName
Set the Name of the font.
setFontSize
public void setFontSize(double value)
Set the Fonts size.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double value |
setHorizontalAlignment
Text alignment. Valid values are: Left, Center, Rigth.
toString
public String toString()
String representation of TextStyle.
Returns: String representation.