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

Provides the previous and proposed text values for a cancellable text-change notification.

The value assigned to NewValue is used only by callers that read it back after the notification.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class TextChangingEventArgs : CancelEventArgs

Inheritance: objectEventArgsCancelEventArgsTextChangingEventArgs

Derived Classes: TextBoxChangingEventArgs

Inherited Members CancelEventArgs.CancelEventArgs.Empty

Constructors

Initializes event data with the old and proposed text values and an initial cancellation state.

C#
public TextChangingEventArgs(string oldValue, string newValue, bool cancel)
Parameters:oldValuestring

The text before the proposed change.

newValuestring

The proposed text after the change.

cancelbool

true to initialize the event as canceled.

Initializes event data with the old and proposed text values.

C#
public TextChangingEventArgs(string oldValue, string newValue)
Parameters:oldValuestring

The text before the proposed change.

newValuestring

The proposed text after the change.

Properties

Gets or sets the proposed text value carried by the notification.

C#
public string NewValue { get; set; }

Gets the text value before the proposed change.

C#
public string OldValue { get; }