**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](#TextProperties-double-) | Creates {@code TextProperties} object for the specified text size |

## Methods

| Method | Description |
| --- | --- |
| [getColor](#getColor--) | Gets text color. |
| [getTextSize](#getTextSize--) | Gets text size. |
| [isColorSpecified](#isColorSpecified--) | Gets a value that indicates whether the {@code Color} property is specified. |
| [isTextSizeSpecified](#isTextSizeSpecified--) | Gets a value that indicates whether the {@code TextSize} property is specified. |
| [setColor](#setColor-java.awt.Color-) | Sets text color. |
| [setTextSize](#setTextSize-double-) | Sets text size. |

### TextProperties {#TextProperties-double-}
```
public TextProperties(double textSize)
```

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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| textSize |  | Text size value. |

### getColor {#getColor--}
```
public Color getColor()
```

Gets text color.

**Returns:**
Color object

### getTextSize {#getTextSize--}
```
public double getTextSize()
```

Gets text size.

**Returns:**
double value

### isColorSpecified {#isColorSpecified--}
```
public boolean isColorSpecified()
```

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

**Returns:**
boolean value

### isTextSizeSpecified {#isTextSizeSpecified--}
```
public boolean isTextSizeSpecified()
```

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

**Returns:**
boolean value

### setColor {#setColor-java.awt.Color-}
Sets text color.

### setTextSize {#setTextSize-double-}
```
public void setTextSize(double value)
```

Sets text size.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | double value |
