Class
TextContentChangingEventArgs

Event args for class for TextContentChanging event.

Definition

Namespace:Telerik.Windows.SyntaxEditor.Core.Text

Assembly:Telerik.Windows.SyntaxEditor.Core.dll

Syntax:

cs-api-definition
public class TextContentChangingEventArgs : EventArgs

Inheritance: objectEventArgsTextContentChangingEventArgs

Inherited Members EventArgs.Empty

Constructors

TextContentChangingEventArgs(TextSnapshot, TextChange)

Initializes a new instance of the TextContentChangingEventArgs class.

Declaration

cs-api-definition
public TextContentChangingEventArgs(TextSnapshot beforeChangeSnapshot, TextChange change)

Parameters

beforeChangeSnapshot

TextSnapshot

change

TextChange

Properties

BeforeChangeSnapshot

Gets the snapshot before the change.

Declaration

cs-api-definition
public TextSnapshot BeforeChangeSnapshot { get; }

Property Value

TextSnapshot

Canceled

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

Declaration

cs-api-definition
public bool Canceled { get; }

Property Value

bool

Change

Gets the text change.

Declaration

cs-api-definition
public TextChange Change { get; }

Property Value

TextChange

Methods

Cancel()

Cancels the content changing.

Declaration

cs-api-definition
public void Cancel()