TextProperties
Contents
[
Hide
]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
| Constructor | Description |
|---|---|
| TextProperties | Creates {@code TextProperties} object for the specified text size |
Methods
| Method | Description |
|---|---|
| getColor | Gets text color. |
| getTextSize | Gets text size. |
| isColorSpecified | Gets a value that indicates whether the {@code Color} property is specified. |
| isTextSizeSpecified | Gets a value that indicates whether the {@code TextSize} property is specified. |
| setColor | Sets text color. |
| setTextSize | Sets text size. |
TextProperties
public TextProperties(double textSize)
Creates {@code TextProperties} object for the specified text size
Parameters:
| Parameter | Type | Description |
|---|---|---|
| textSize | Text 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:
| Parameter | Type | Description |
|---|---|---|
| value | double value |