Skip to content

ITextCompositionClient interface

Receives IME text composition (preedit) events.

public interface ITextCompositionClient
name description
CompositionStartIndex { get; } Gets the character index where the current composition started.
IsComposing { get; } Gets whether an IME composition is currently in progress.
GetCharRectInWindow(…) Returns the rectangle at the given character index in window coordinates (DIPs).
HandleTextCompositionEnd(…) Receives the end of an IME composition, after which the committed text arrives as text input.
HandleTextCompositionStart(…) Receives the start of an IME composition.
HandleTextCompositionUpdate(…) Receives an update to the composition text or its attributes.

Implement this only on elements that actively edit text (e.g. TextBox).