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

117 lines
7.0 KiB
C#

using System;
using System.Collections;
namespace System.ComponentModel
{
/// <summary>Provides the features required to support both complex and simple scenarios when binding to a data source.</summary>
// Token: 0x02000084 RID: 132
public interface IBindingList : ICollection, IEnumerable, IList
{
/// <summary>Occurs when the list changes or an item in the list changes.</summary>
// Token: 0x14000014 RID: 20
// (add) Token: 0x060004AF RID: 1199
// (remove) Token: 0x060004B0 RID: 1200
event ListChangedEventHandler ListChanged;
/// <summary>Adds the <see cref="T:System.ComponentModel.PropertyDescriptor" /> to the indexes used for searching.</summary>
/// <param name="property">The <see cref="T:System.ComponentModel.PropertyDescriptor" /> to add to the indexes used for searching. </param>
// Token: 0x060004B1 RID: 1201
void AddIndex(PropertyDescriptor property);
/// <summary>Adds a new item to the list.</summary>
/// <returns>The item added to the list.</returns>
/// <exception cref="T:System.NotSupportedException">
/// <see cref="P:System.ComponentModel.IBindingList.AllowNew" /> is false. </exception>
// Token: 0x060004B2 RID: 1202
object AddNew();
/// <summary>Sorts the list based on a <see cref="T:System.ComponentModel.PropertyDescriptor" /> and a <see cref="T:System.ComponentModel.ListSortDirection" />.</summary>
/// <param name="property">The <see cref="T:System.ComponentModel.PropertyDescriptor" /> to sort by. </param>
/// <param name="direction">One of the <see cref="T:System.ComponentModel.ListSortDirection" /> values. </param>
/// <exception cref="T:System.NotSupportedException">
/// <see cref="P:System.ComponentModel.IBindingList.SupportsSorting" /> is false. </exception>
// Token: 0x060004B3 RID: 1203
void ApplySort(PropertyDescriptor property, ListSortDirection direction);
/// <summary>Returns the index of the row that has the given <see cref="T:System.ComponentModel.PropertyDescriptor" />.</summary>
/// <returns>The index of the row that has the given <see cref="T:System.ComponentModel.PropertyDescriptor" />.</returns>
/// <param name="property">The <see cref="T:System.ComponentModel.PropertyDescriptor" /> to search on. </param>
/// <param name="key">The value of the <paramref name="property" /> parameter to search for. </param>
/// <exception cref="T:System.NotSupportedException">
/// <see cref="P:System.ComponentModel.IBindingList.SupportsSearching" /> is false. </exception>
// Token: 0x060004B4 RID: 1204
int Find(PropertyDescriptor property, object key);
/// <summary>Removes the <see cref="T:System.ComponentModel.PropertyDescriptor" /> from the indexes used for searching.</summary>
/// <param name="property">The <see cref="T:System.ComponentModel.PropertyDescriptor" /> to remove from the indexes used for searching. </param>
// Token: 0x060004B5 RID: 1205
void RemoveIndex(PropertyDescriptor property);
/// <summary>Removes any sort applied using <see cref="M:System.ComponentModel.IBindingList.ApplySort(System.ComponentModel.PropertyDescriptor,System.ComponentModel.ListSortDirection)" />.</summary>
/// <exception cref="T:System.NotSupportedException">
/// <see cref="P:System.ComponentModel.IBindingList.SupportsSorting" /> is false. </exception>
// Token: 0x060004B6 RID: 1206
void RemoveSort();
/// <summary>Gets whether you can update items in the list.</summary>
/// <returns>true if you can update the items in the list; otherwise, false.</returns>
// Token: 0x17000138 RID: 312
// (get) Token: 0x060004B7 RID: 1207
bool AllowEdit { get; }
/// <summary>Gets whether you can add items to the list using <see cref="M:System.ComponentModel.IBindingList.AddNew" />.</summary>
/// <returns>true if you can add items to the list using <see cref="M:System.ComponentModel.IBindingList.AddNew" />; otherwise, false.</returns>
// Token: 0x17000139 RID: 313
// (get) Token: 0x060004B8 RID: 1208
bool AllowNew { get; }
/// <summary>Gets whether you can remove items from the list, using <see cref="M:System.Collections.IList.Remove(System.Object)" /> or <see cref="M:System.Collections.IList.RemoveAt(System.Int32)" />.</summary>
/// <returns>true if you can remove items from the list; otherwise, false.</returns>
// Token: 0x1700013A RID: 314
// (get) Token: 0x060004B9 RID: 1209
bool AllowRemove { get; }
/// <summary>Gets whether the items in the list are sorted.</summary>
/// <returns>true if <see cref="M:System.ComponentModel.IBindingList.ApplySort(System.ComponentModel.PropertyDescriptor,System.ComponentModel.ListSortDirection)" /> has been called and <see cref="M:System.ComponentModel.IBindingList.RemoveSort" /> has not been called; otherwise, false.</returns>
/// <exception cref="T:System.NotSupportedException">
/// <see cref="P:System.ComponentModel.IBindingList.SupportsSorting" /> is false. </exception>
// Token: 0x1700013B RID: 315
// (get) Token: 0x060004BA RID: 1210
bool IsSorted { get; }
/// <summary>Gets the direction of the sort.</summary>
/// <returns>One of the <see cref="T:System.ComponentModel.ListSortDirection" /> values.</returns>
/// <exception cref="T:System.NotSupportedException">
/// <see cref="P:System.ComponentModel.IBindingList.SupportsSorting" /> is false. </exception>
// Token: 0x1700013C RID: 316
// (get) Token: 0x060004BB RID: 1211
ListSortDirection SortDirection { get; }
/// <summary>Gets the <see cref="T:System.ComponentModel.PropertyDescriptor" /> that is being used for sorting.</summary>
/// <returns>The <see cref="T:System.ComponentModel.PropertyDescriptor" /> that is being used for sorting.</returns>
/// <exception cref="T:System.NotSupportedException">
/// <see cref="P:System.ComponentModel.IBindingList.SupportsSorting" /> is false. </exception>
// Token: 0x1700013D RID: 317
// (get) Token: 0x060004BC RID: 1212
PropertyDescriptor SortProperty { get; }
/// <summary>Gets whether a <see cref="E:System.ComponentModel.IBindingList.ListChanged" /> event is raised when the list changes or an item in the list changes.</summary>
/// <returns>true if a <see cref="E:System.ComponentModel.IBindingList.ListChanged" /> event is raised when the list changes or when an item changes; otherwise, false.</returns>
// Token: 0x1700013E RID: 318
// (get) Token: 0x060004BD RID: 1213
bool SupportsChangeNotification { get; }
/// <summary>Gets whether the list supports searching using the <see cref="M:System.ComponentModel.IBindingList.Find(System.ComponentModel.PropertyDescriptor,System.Object)" /> method.</summary>
/// <returns>true if the list supports searching using the <see cref="M:System.ComponentModel.IBindingList.Find(System.ComponentModel.PropertyDescriptor,System.Object)" /> method; otherwise, false.</returns>
// Token: 0x1700013F RID: 319
// (get) Token: 0x060004BE RID: 1214
bool SupportsSearching { get; }
/// <summary>Gets whether the list supports sorting.</summary>
/// <returns>true if the list supports sorting; otherwise, false.</returns>
// Token: 0x17000140 RID: 320
// (get) Token: 0x060004BF RID: 1215
bool SupportsSorting { get; }
}
}