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

Provides data for the NameChanging event, which occurs when the name of a style is about to change.

Definition

Namespace:Telerik.Windows.Documents.Model.Styles

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class NameChangingEventArgs : EventArgs

Inheritance: objectEventArgsNameChangingEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes a new instance of the NameChangingEventArgs class with the specified old and new names.

C#
public NameChangingEventArgs(string oldName, string newName)
Parameters:oldNamestring

The old name before the change occurred.

newNamestring

The new name that is being set.

Properties

Represents the new name value that is being changed in the styles model.

C#
public string NewName { get; }
Property Value:

The new name as a string.

Gets the old name associated with the name changing event.

C#
public string OldName { get; }
Property Value:

A string representing the old name before the change occurred.