193 lines
8.7 KiB
C#
193 lines
8.7 KiB
C#
using System;
|
|
using System.Collections;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.ComponentModel
|
|
{
|
|
/// <summary>Provides the features required to support both complex and simple scenarios when binding to a data source.</summary>
|
|
// Token: 0x0200012A RID: 298
|
|
[Token(Token = "0x200012A")]
|
|
public interface IBindingList : IList, ICollection, IEnumerable
|
|
{
|
|
/// <summary>Gets whether you can add items to the list using <see cref="M:System.ComponentModel.IBindingList.AddNew" />.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if you can add items to the list using <see cref="M:System.ComponentModel.IBindingList.AddNew" />; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x1700015A RID: 346
|
|
// (get) Token: 0x06000776 RID: 1910
|
|
[Token(Token = "0x1700015A")]
|
|
bool AllowNew
|
|
{
|
|
[Token(Token = "0x6000776")]
|
|
[Address(Slot = "0")]
|
|
get;
|
|
}
|
|
|
|
/// <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 <see langword="false" />.</exception>
|
|
// Token: 0x06000777 RID: 1911
|
|
[Token(Token = "0x6000777")]
|
|
[Address(Slot = "1")]
|
|
object AddNew();
|
|
|
|
/// <summary>Gets whether you can update items in the list.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if you can update the items in the list; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x1700015B RID: 347
|
|
// (get) Token: 0x06000778 RID: 1912
|
|
[Token(Token = "0x1700015B")]
|
|
bool AllowEdit
|
|
{
|
|
[Token(Token = "0x6000778")]
|
|
[Address(Slot = "2")]
|
|
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>
|
|
/// <see langword="true" /> if you can remove items from the list; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x1700015C RID: 348
|
|
// (get) Token: 0x06000779 RID: 1913
|
|
[Token(Token = "0x1700015C")]
|
|
bool AllowRemove
|
|
{
|
|
[Token(Token = "0x6000779")]
|
|
[Address(Slot = "3")]
|
|
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>
|
|
/// <see langword="true" /> if a <see cref="E:System.ComponentModel.IBindingList.ListChanged" /> event is raised when the list changes or when an item changes; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x1700015D RID: 349
|
|
// (get) Token: 0x0600077A RID: 1914
|
|
[Token(Token = "0x1700015D")]
|
|
bool SupportsChangeNotification
|
|
{
|
|
[Token(Token = "0x600077A")]
|
|
[Address(Slot = "4")]
|
|
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>
|
|
/// <see langword="true" /> if the list supports searching using the <see cref="M:System.ComponentModel.IBindingList.Find(System.ComponentModel.PropertyDescriptor,System.Object)" /> method; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x1700015E RID: 350
|
|
// (get) Token: 0x0600077B RID: 1915
|
|
[Token(Token = "0x1700015E")]
|
|
bool SupportsSearching
|
|
{
|
|
[Token(Token = "0x600077B")]
|
|
[Address(Slot = "5")]
|
|
get;
|
|
}
|
|
|
|
/// <summary>Gets whether the list supports sorting.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the list supports sorting; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x1700015F RID: 351
|
|
// (get) Token: 0x0600077C RID: 1916
|
|
[Token(Token = "0x1700015F")]
|
|
bool SupportsSorting
|
|
{
|
|
[Token(Token = "0x600077C")]
|
|
[Address(Slot = "6")]
|
|
get;
|
|
}
|
|
|
|
/// <summary>Gets whether the items in the list are sorted.</summary>
|
|
/// <returns>
|
|
/// <see langword="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, <see langword="false" />.</returns>
|
|
/// <exception cref="T:System.NotSupportedException">
|
|
/// <see cref="P:System.ComponentModel.IBindingList.SupportsSorting" /> is <see langword="false" />.</exception>
|
|
// Token: 0x17000160 RID: 352
|
|
// (get) Token: 0x0600077D RID: 1917
|
|
[Token(Token = "0x17000160")]
|
|
bool IsSorted
|
|
{
|
|
[Token(Token = "0x600077D")]
|
|
[Address(Slot = "7")]
|
|
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 <see langword="false" />.</exception>
|
|
// Token: 0x17000161 RID: 353
|
|
// (get) Token: 0x0600077E RID: 1918
|
|
[Token(Token = "0x17000161")]
|
|
PropertyDescriptor SortProperty
|
|
{
|
|
[Token(Token = "0x600077E")]
|
|
[Address(Slot = "8")]
|
|
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 <see langword="false" />.</exception>
|
|
// Token: 0x17000162 RID: 354
|
|
// (get) Token: 0x0600077F RID: 1919
|
|
[Token(Token = "0x17000162")]
|
|
ListSortDirection SortDirection
|
|
{
|
|
[Token(Token = "0x600077F")]
|
|
[Address(Slot = "9")]
|
|
get;
|
|
}
|
|
|
|
/// <summary>Occurs when the list changes or an item in the list changes.</summary>
|
|
// Token: 0x14000007 RID: 7
|
|
// (add) Token: 0x06000780 RID: 1920
|
|
// (remove) Token: 0x06000781 RID: 1921
|
|
[Token(Token = "0x14000007")]
|
|
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: 0x06000782 RID: 1922
|
|
[Token(Token = "0x6000782")]
|
|
[Address(Slot = "12")]
|
|
void AddIndex(PropertyDescriptor property);
|
|
|
|
/// <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 <see langword="false" />.</exception>
|
|
// Token: 0x06000783 RID: 1923
|
|
[Token(Token = "0x6000783")]
|
|
[Address(Slot = "13")]
|
|
void ApplySort(PropertyDescriptor property, ListSortDirection direction);
|
|
|
|
/// <summary>Returns the index of the row that has the given <see cref="T:System.ComponentModel.PropertyDescriptor" />.</summary>
|
|
/// <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>
|
|
/// <returns>The index of the row that has the given <see cref="T:System.ComponentModel.PropertyDescriptor" />.</returns>
|
|
/// <exception cref="T:System.NotSupportedException">
|
|
/// <see cref="P:System.ComponentModel.IBindingList.SupportsSearching" /> is <see langword="false" />.</exception>
|
|
// Token: 0x06000784 RID: 1924
|
|
[Token(Token = "0x6000784")]
|
|
[Address(Slot = "14")]
|
|
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: 0x06000785 RID: 1925
|
|
[Token(Token = "0x6000785")]
|
|
[Address(Slot = "15")]
|
|
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 <see langword="false" />.</exception>
|
|
// Token: 0x06000786 RID: 1926
|
|
[Token(Token = "0x6000786")]
|
|
[Address(Slot = "16")]
|
|
void RemoveSort();
|
|
}
|
|
}
|