Click or drag to resize

IBrowserHostImeSetComposition Method

Version 94.4.20
Begins a new composition or updates the existing composition. Blink has a special node (a composition node) that allows the input method to change text without affecting other DOM nodes. This method may be called multiple times as the composition changes. When the client is done making changes the composition should either be canceled or completed. To cancel the composition call ImeCancelComposition. To complete the composition call either ImeCommitText or ImeFinishComposingText. Completion is usually signaled when: The client receives a WM_IME_COMPOSITION message with a GCS_RESULTSTR flag (on Windows). This method is only used when window rendering is disabled. (WPF and OffScreen)

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 94.4.20.0 (94.4.20.0)
Syntax
void ImeSetComposition(
	string text,
	CompositionUnderline[] underlines,
	Range? replacementRange,
	Range? selectionRange
)

Parameters

text
Type: SystemString
is the optional text that will be inserted into the composition node
underlines
Type: CefSharp.StructsCompositionUnderline
is an optional set of ranges that will be underlined in the resulting text.
replacementRange
Type: SystemNullableRange
is an optional range of the existing text that will be replaced. (MAC OSX ONLY)
selectionRange
Type: SystemNullableRange
is an optional range of the resulting text that will be selected after insertion or replacement.
See Also