TextStyle

Inheritance: java.lang.Object, com.aspose.pdf.TextStyle

public class TextStyle extends Object

Class representing checkbox field

Methods

MethodDescription
getAlignmentGets horizontal alignment of the text.
getColorGet the Color of the text.
getFontNameGet the Name of the font.
getFontSizeGet the Fonts size.
getHorizontalAlignmentText alignment. Valid values are: Left, Center, Rigth.
setAlignmentSets horizontal alignment of the text.
setColorSet the Color of the text.
setFontNameSet the Name of the font.
setFontSizeSet the Fonts size.
setHorizontalAlignmentText alignment. Valid values are: Left, Center, Rigth.
toStringString 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:

ParameterTypeDescription
valuedouble value

setHorizontalAlignment

Text alignment. Valid values are: Left, Center, Rigth.

toString

public String toString()

String representation of TextStyle.

Returns: String representation.