# StyleTransition Struct

> Represents a style change in a word.

- Product: Adobe PDF Library 21
- Language: Modern C++
- Version: 21.4.0
- HTML page: https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/struct/StyleTransition
- Version index: https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/llms.txt

```cpp
struct StyleTransition
```

**Namespace:** `datalogics_interface`

## 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:** [`Word`](https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/class/Word.md)

**Uses types:** [`Style`](https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/class/Style.md)

## Fields

### char_index

```cpp
int datalogics_interface::StyleTransition::char_index
```

### style

```cpp
Style datalogics_interface::StyleTransition::style
```

## Methods

### to_string

```cpp
std::string datalogics_interface::StyleTransition::to_string() const
```

**Returns:** `std::string`
