Translates caret text and IME notifications into document editing commands.
Definition
Namespace:Telerik.WinForms.Documents.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class CaretTextInputHandler
Inheritance: objectCaretTextInputHandler
Constructors
Connects the specified caret to the document presenter and subscribes to its text-input notifications.
public CaretTextInputHandler(IUILayerContainer pagePresenter, Caret caretUI)
The presenter whose owner document receives input.
caretUICaretThe caret that reports text and IME input.
Methods
Updates or commits an IME composition and restores document undo history when the composition is finalized.
public void HandleTextInsertedWithIme(RadDocument document, string text, TextInsertedEventArgs e)
The document to edit.
textstringThe current composition text; an empty value cancels the uncommitted composition.
eTextInsertedEventArgsThe flags indicating whether this starts a composition or commits it.
Inserts standard text, applying the owner's return-key, mention, and automatic-hyperlink behavior.
public void HandleTextInsertedWithoutIme(RadDocument document, string text)
The document to edit.
textstringThe text to insert.