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

Provides inserted text and the IME composition state used by the document input handler.

Definition

Namespace:Telerik.WinForms.Documents.UI

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class TextInsertedEventArgs : EventArgs

Inheritance: objectEventArgsTextInsertedEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes event data for inserted text and its composition state.

C#
public TextInsertedEventArgs(string text, bool shouldPersist, bool shouldStartNewComposition)
Parameters:textstring

The text reported by the input source; an empty string can signal cancellation of an uncommitted composition.

shouldPersistbool

true when the current composition should be committed to the document history.

shouldStartNewCompositionbool

true when the text starts a new IME composition.

Properties

Gets whether the current IME composition should be committed.

C#
public bool ShouldPersist { get; }

Gets whether the reported text starts a new IME composition.

C#
public bool ShouldStartNewComposition { get; }

Gets the text reported by the input source.

C#
public string Text { get; }