New to Telerik UI for WPFStart a free 30-day trial

Event args for class for TextContentChanging event.

Definition

Namespace:Telerik.Windows.SyntaxEditor.Core.Text

Assembly:Telerik.Windows.SyntaxEditor.Core.dll

Syntax:

C#
public class TextContentChangingEventArgs : EventArgs

Inheritance: objectEventArgsTextContentChangingEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes a new instance of the TextContentChangingEventArgs class.

C#
public TextContentChangingEventArgs(TextSnapshot beforeChangeSnapshot, TextChange change)
Parameters:beforeChangeSnapshotTextSnapshotchangeTextChange

Properties

Gets the snapshot before the change.

C#
public TextSnapshot BeforeChangeSnapshot { get; }

Gets a value indicating whether the text change should be cancelled.

C#
public bool Canceled { get; }

Gets the text change.

C#
public TextChange Change { get; }

Methods

Cancels the content changing.

C#
public void Cancel()