# StyleTransition Class

> Represents a style change 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/StyleTransition
- Version index: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/llms.txt

```java
class StyleTransition
```

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

## Description

Represents a style change in a word. A StyleTransition provides information about the character index in the word where the style changes, and the new Style.

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

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

## Methods

### delete

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

*protected*

**Parameters**

- `disposing` (`Boolean`)

**Returns:** `synchronized void`

### delete

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

**Returns:** `synchronized void`

### finalize

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

*protected*

**Returns:** `void`

### getCharIndex

```java
int com.datalogics.PDFL.StyleTransition.getCharIndex()
```

**Returns:** `int`

The index of the character in the word at which this transition begins.

### getStyle

```java
Style com.datalogics.PDFL.StyleTransition.getStyle()
```

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

The Style that begins at this transition.

### toString

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

**Returns:** `String`

Returns a string representation of the StyleTransition.
