A C# wrapper for Windows IME APIs.
Forked from https://github.com/ryancheung/ImeSharp
Call InputMethod.Initialize
to initialize the input method with a window handle, e.g. InputMethod.Initialize(someWindowHandle)
.
If you don't want the OS Candidate Window, do InputMethod.Initialize(someWindowHandle, false)
.
InputMethod.TextInputCallback = OnTextInput;
InputMethod.TextCompositionCallback = OnTextComposition;
Retrieve other composition info from InputMethod.CandidateList
and other fields for CJK IMEs.
InputMethod.SetTextInputRect(location.X, location.Y, 0, textBoxHeight);