New to Telerik UI for WinForms? Start a free 30-day trial

Translates caret text and IME notifications into document editing commands.

Definition

Namespace:Telerik.WinForms.Documents.UI

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class CaretTextInputHandler

Inheritance: objectCaretTextInputHandler

Constructors

Connects the specified caret to the document presenter and subscribes to its text-input notifications.

C#
public CaretTextInputHandler(IUILayerContainer pagePresenter, Caret caretUI)
Parameters:pagePresenterIUILayerContainer

The presenter whose owner document receives input.

caretUICaret

The caret that reports text and IME input.

Methods

Updates or commits an IME composition and restores document undo history when the composition is finalized.

C#
public void HandleTextInsertedWithIme(RadDocument document, string text, TextInsertedEventArgs e)
Parameters:documentRadDocument

The document to edit.

textstring

The current composition text; an empty value cancels the uncommitted composition.

eTextInsertedEventArgs

The flags indicating whether this starts a composition or commits it.

Inserts standard text, applying the owner's return-key, mention, and automatic-hyperlink behavior.

C#
public void HandleTextInsertedWithoutIme(RadDocument document, string text)
Parameters:documentRadDocument

The document to edit.

textstring

The text to insert.