TextProperties

Inheritance: java.lang.Object, com.aspose.pdf.facades.TextProperties

public final class TextProperties extends Object

Represents text properties such as: text size, color, style etc.

Constructors

ConstructorDescription
TextPropertiesCreates {@code TextProperties} object for the specified text size

Methods

MethodDescription
getColorGets text color.
getTextSizeGets text size.
isColorSpecifiedGets a value that indicates whether the {@code Color} property is specified.
isTextSizeSpecifiedGets a value that indicates whether the {@code TextSize} property is specified.
setColorSets text color.
setTextSizeSets text size.

TextProperties

public TextProperties(double textSize)

Creates {@code TextProperties} object for the specified text size

Parameters:

ParameterTypeDescription
textSizeText size value.

getColor

public Color getColor()

Gets text color.

Returns: Color object

getTextSize

public double getTextSize()

Gets text size.

Returns: double value

isColorSpecified

public boolean isColorSpecified()

Gets a value that indicates whether the {@code Color} property is specified.

Returns: boolean value

isTextSizeSpecified

public boolean isTextSizeSpecified()

Gets a value that indicates whether the {@code TextSize} property is specified.

Returns: boolean value

setColor

Sets text color.

setTextSize

public void setTextSize(double value)

Sets text size.

Parameters:

ParameterTypeDescription
valuedouble value