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

114 lines
4.9 KiB
C#

using System;
namespace System.ComponentModel
{
/// <summary>Provides data for the <see cref="E:System.ComponentModel.IBindingList.ListChanged" /> event.</summary>
// Token: 0x020000A5 RID: 165
public class ListChangedEventArgs : EventArgs
{
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.ListChangedEventArgs" /> class given the type of change and the index of the affected item.</summary>
/// <param name="listChangedType">A <see cref="T:System.ComponentModel.ListChangedType" /> value indicating the type of change.</param>
/// <param name="newIndex">The index of the item that was added, changed, or removed.</param>
// Token: 0x06000558 RID: 1368 RVA: 0x0000E294 File Offset: 0x0000C494
public ListChangedEventArgs(ListChangedType listChangedType, int newIndex)
: this(listChangedType, newIndex, -1)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.ListChangedEventArgs" /> class given the type of change and the <see cref="T:System.ComponentModel.PropertyDescriptor" /> affected.</summary>
/// <param name="listChangedType">A <see cref="T:System.ComponentModel.ListChangedType" /> value indicating the type of change.</param>
/// <param name="propDesc">The <see cref="T:System.ComponentModel.PropertyDescriptor" /> that was added, removed, or changed.</param>
// Token: 0x06000559 RID: 1369 RVA: 0x0000E2A0 File Offset: 0x0000C4A0
public ListChangedEventArgs(ListChangedType listChangedType, PropertyDescriptor propDesc)
{
this.changedType = listChangedType;
this.propDesc = propDesc;
}
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.ListChangedEventArgs" /> class given the type of change and the old and new index of the item that was moved.</summary>
/// <param name="listChangedType">A <see cref="T:System.ComponentModel.ListChangedType" /> value indicating the type of change.</param>
/// <param name="newIndex">The new index of the item that was moved.</param>
/// <param name="oldIndex">The old index of the item that was moved.</param>
// Token: 0x0600055A RID: 1370 RVA: 0x0000E2B8 File Offset: 0x0000C4B8
public ListChangedEventArgs(ListChangedType listChangedType, int newIndex, int oldIndex)
{
this.changedType = listChangedType;
this.newIndex = newIndex;
this.oldIndex = oldIndex;
}
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.ListChangedEventArgs" /> class given the type of change, the index of the affected item, and a <see cref="T:System.ComponentModel.PropertyDescriptor" /> describing the affected item.</summary>
/// <param name="listChangedType">A <see cref="T:System.ComponentModel.ListChangedType" /> value indicating the type of change.</param>
/// <param name="newIndex">The index of the item that was added or changed.</param>
/// <param name="propDesc">The <see cref="T:System.ComponentModel.PropertyDescriptor" /> describing the item.</param>
// Token: 0x0600055B RID: 1371 RVA: 0x0000E2D8 File Offset: 0x0000C4D8
public ListChangedEventArgs(ListChangedType listChangedType, int newIndex, PropertyDescriptor propDesc)
{
this.changedType = listChangedType;
this.newIndex = newIndex;
this.oldIndex = newIndex;
this.propDesc = propDesc;
}
/// <summary>Gets the type of change.</summary>
/// <returns>A <see cref="T:System.ComponentModel.ListChangedType" /> value indicating the type of change.</returns>
// Token: 0x17000161 RID: 353
// (get) Token: 0x0600055C RID: 1372 RVA: 0x0000E308 File Offset: 0x0000C508
public ListChangedType ListChangedType
{
get
{
return this.changedType;
}
}
/// <summary>Gets the old index of an item that has been moved.</summary>
/// <returns>The old index of the moved item.</returns>
// Token: 0x17000162 RID: 354
// (get) Token: 0x0600055D RID: 1373 RVA: 0x0000E310 File Offset: 0x0000C510
public int OldIndex
{
get
{
return this.oldIndex;
}
}
/// <summary>Gets the index of the item affected by the change.</summary>
/// <returns>The index of the affected by the change.</returns>
// Token: 0x17000163 RID: 355
// (get) Token: 0x0600055E RID: 1374 RVA: 0x0000E318 File Offset: 0x0000C518
public int NewIndex
{
get
{
return this.newIndex;
}
}
/// <summary>Gets the <see cref="T:System.ComponentModel.PropertyDescriptor" /> that was added, changed, or deleted.</summary>
/// <returns>The <see cref="T:System.ComponentModel.PropertyDescriptor" /> affected by the change.</returns>
// Token: 0x17000164 RID: 356
// (get) Token: 0x0600055F RID: 1375 RVA: 0x0000E320 File Offset: 0x0000C520
public PropertyDescriptor PropertyDescriptor
{
get
{
return this.propDesc;
}
}
// Token: 0x0400018E RID: 398
private ListChangedType changedType;
// Token: 0x0400018F RID: 399
private int oldIndex;
// Token: 0x04000190 RID: 400
private int newIndex;
// Token: 0x04000191 RID: 401
private PropertyDescriptor propDesc;
}
}