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

Carries the previous and new name when a style name or display name changes.

Definition

Namespace:Telerik.WinForms.Documents.Model.Styles

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class NameChangingEventArgs : EventArgs

Inheritance: objectEventArgsNameChangingEventArgs

Inherited Members EventArgs.Empty

Constructors

Creates event data for a style-name or display-name change.

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

The previously stored name value.

newNamestring

The value being assigned as the new name.

Properties

Gets the value being assigned as the new name. For display-name changes, a null or empty value makes the effective display name fall back to the style name.

C#
public string NewName { get; }

Gets the previously stored name value. For display-name changes, this can be null or empty even when the effective display name falls back to the style name.

C#
public string OldName { get; }