Files
2026-06-04 11:42:34 +02:00

69 lines
2.1 KiB
C#

using System;
using System.Runtime.InteropServices;
namespace System.ComponentModel.Design
{
/// <summary>Provides data for the <see cref="E:System.ComponentModel.Design.IComponentChangeService.ComponentRename" /> event.</summary>
// Token: 0x02000041 RID: 65
[ComVisible(true)]
public class ComponentRenameEventArgs : EventArgs
{
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.Design.ComponentRenameEventArgs" /> class.</summary>
/// <param name="component">The component to be renamed. </param>
/// <param name="oldName">The old name of the component. </param>
/// <param name="newName">The new name of the component. </param>
// Token: 0x060002AB RID: 683 RVA: 0x000096F4 File Offset: 0x000078F4
public ComponentRenameEventArgs(object component, string oldName, string newName)
{
this.component = component;
this.oldName = oldName;
this.newName = newName;
}
/// <summary>Gets the component that is being renamed.</summary>
/// <returns>The component that is being renamed.</returns>
// Token: 0x170000C5 RID: 197
// (get) Token: 0x060002AC RID: 684 RVA: 0x00009714 File Offset: 0x00007914
public object Component
{
get
{
return this.component;
}
}
/// <summary>Gets the name of the component after the rename event.</summary>
/// <returns>The name of the component after the rename event.</returns>
// Token: 0x170000C6 RID: 198
// (get) Token: 0x060002AD RID: 685 RVA: 0x0000971C File Offset: 0x0000791C
public virtual string NewName
{
get
{
return this.newName;
}
}
/// <summary>Gets the name of the component before the rename event.</summary>
/// <returns>The previous name of the component.</returns>
// Token: 0x170000C7 RID: 199
// (get) Token: 0x060002AE RID: 686 RVA: 0x00009724 File Offset: 0x00007924
public virtual string OldName
{
get
{
return this.oldName;
}
}
// Token: 0x040000C1 RID: 193
private object component;
// Token: 0x040000C2 RID: 194
private string oldName;
// Token: 0x040000C3 RID: 195
private string newName;
}
}