# Style Class

> Provides access to data about fonts, font sizes, and colors used in a word.

- Product: Adobe PDF Library 18
- Language: Java
- Version: APDFL18.0.5PlusP2e
- HTML page: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Style
- Version index: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/llms.txt

```java
class Style
```

**Namespace:** `com::datalogics::PDFL`

## Description

Provides access to data about fonts, font sizes, and colors used in a word.

**Referenced by:** [`StyleTransition`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/StyleTransition.md)

**Uses types:** [`Color`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Color.md)

## Methods

### delete

```java
synchronized void com.datalogics.PDFL.Style.delete(Boolean disposing)
```

*protected*

**Parameters**

- `disposing` (`Boolean`)

**Returns:** `synchronized void`

### delete

```java
synchronized void com.datalogics.PDFL.Style.delete()
```

**Returns:** `synchronized void`

### finalize

```java
void com.datalogics.PDFL.Style.finalize()
```

*protected*

**Returns:** `void`

### getColor

```java
Color com.datalogics.PDFL.Style.getColor()
```

**Returns:** [`Color`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Color.md)

The Color associated with this style.

Gets the style's color.

### getFontName

```java
String com.datalogics.PDFL.Style.getFontName()
```

**Returns:** `String`

The font name as a string.

Gets the name of the style's font.

### getFontSize

```java
double com.datalogics.PDFL.Style.getFontSize()
```

**Returns:** `double`

The font size for this style, in points.

Gets the style's font size.

### toString

```java
String com.datalogics.PDFL.Style.toString()
```

**Returns:** `String`

A string in the format "[color=..., fontsize=..., fontname=...]".

Returns a string representing the Style's value. The returned value indicates the color, font, and font size of the style.
