Back to API Reference
Struct

CompositionData

sealed

Ephemeral composition data whose spans are valid only for the synchronous report call.

public ReadOnlySpan<char> text

The current composition string. Span into a reusable internal buffer — must be consumed or copied within the callback scope.

Clause boundaries and styles. Span into a reusable internal buffer — must be consumed or copied within the callback scope.

public int cursorPosition

Cursor position (char offset) within the composition string, or -1 while the platform temporarily suppresses the insertion point.