[]
Represents a collection of resources.
[ListBindable(true)]
public class ResourceCollection : BaseCollection<Resource>, IBindingList, IList, ICollection, IEnumerable
Name | Description |
---|---|
AllowEdit | Gets a value indicating whether items in the underlying list can be edited. |
AllowNew | Gets whether you can add items to the list using AddNew. |
AllowRemove | Gets whether you can remove items from the list, using Remove or RemoveAt. |
SupportsSorting | Gets a value indicating whether the list supports sorting. |
Name | Description |
---|---|
AddNew() | Adds a new item to the list. |
ApplySort(PropertyDescriptor, ListSortDirection) | Sorts the resources. |
ClearItems() | Removes all items from the collection. |
IndexOf(int) | Searches for the specified ID and returns the zero-based index of the corresponding resource. |
IndexOf(string) | Searches for the specified Name and returns the zero-based index of the corresponding resource. |
InsertItem(int, Resource) | Inserts an item at the specified index. |
OnListChanged(ListChangedEventArgs) | Raises the ListChanged event. |
RemoveItem(int) | Removes the item at the specified index. |
RemoveSort() | Remove all sorts were applied to the tasks. |
Search(int) | Searches for a Resource with the specified ID. |
Search(string) | Searches for a Resource with the specified Name. |
SetItem(int, Resource) | Replaces the item at the specified index. |
Name | Description |
---|---|
AddingNew | Occurs before an item is added to the underlying list. |
ListChanged | Occurs when the list changes or an item in the list changes. |