EyeshotDisposableCollection<T> Class

Base collection with virtual methods for handling code when items are added or removed.
Public Class EyeshotDisposableCollection(Of  _ 
T As IDisposable
Inherits EyeshotCollection(Of T)
This language is not supported or no code example is available.
public class EyeshotDisposableCollection<T> : EyeshotCollection<T> 
where T : IDisposable
This language is not supported or no code example is available.

Type Parameters

T

The type of the collection's items. The item must implement IDisposable interface.

Name Description
Public property Capacity (inherited from EyeshotCollection<T>).
Public property Count Gets the number of items actually contained in the collection. (inherited from EyeshotCollection<T>).
Public property IsReadOnly Gets a value indicating whether the collection is read-only. (inherited from EyeshotCollection<T>).
Public property Item(int) Gets or sets the item at the specified index.
Top
Methods
 
Name Description
Public method Add(T) Adds one item at the end of this collection.
Public method Add(T, RegenOptions)
Public method AddRange(IEnumerable<T>) Adds the items of the specified collection to the end of this collection.
Public method AddRange(IEnumerable<T>, RegenOptions)
Public method Clear() Removes all items from the collection.
Public method Contains(T) Determines whether an item is in the collection. (inherited from EyeshotCollection<T>).
Public method CopyTo(T[], int) Copies the entire collection to a compatible one-dimensional array. (inherited from EyeshotCollection<T>).
Public method Equals(Object) (inherited from Object).
Public method Exists(Predicate<T>) Determines whether this collection contains elements that match the conditions defined by the specified predicate. (inherited from EyeshotCollection<T>).
Protected method Finalize (inherited from Object).
Public method Find(Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire collection. (inherited from EyeshotCollection<T>).
Public method FindAll(Predicate<T>) Retrieves all the elements that match the conditions defined by the specified predicate. (inherited from EyeshotCollection<T>).
Public method FindIndex(Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire collection. (inherited from EyeshotCollection<T>).
Public method FindIndex(int, Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in this collection that extends from the specified index to the last element. (inherited from EyeshotCollection<T>).
Public method FindIndex(int, int, Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in this collection that starts at the specified index and contains the specified number of elements. (inherited from EyeshotCollection<T>).
Public method FindLast(Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire collection. (inherited from EyeshotCollection<T>).
Public method FindLastIndex(Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the entire collection. (inherited from EyeshotCollection<T>).
Public method FindLastIndex(int, Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in this collection that extends from the first element to the specified index. (inherited from EyeshotCollection<T>).
Public method FindLastIndex(int, int, Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in this collection that contains the specified number of elements and ends at the specified index. (inherited from EyeshotCollection<T>).
Public method ForEach(Action<T>) Performs the specified action on each element of the collection. (inherited from EyeshotCollection<T>).
Public method GetEnumerator() (inherited from EyeshotCollection<T>).
Public method GetHashCode (inherited from Object).
Public method GetType (inherited from Object).
Public method IndexOf(T) (inherited from EyeshotCollection<T>).
Public method Insert(int, T) Inserts an item into this collection at the specified index.
Public method Insert(int, T, RegenOptions)
Public method InsertRange(int, IEnumerable<T>) Inserts the items of a collection into this collection at the specified index.
Public method InsertRange(int, IEnumerable<T>, RegenOptions)
Protected method MemberwiseClone (inherited from Object).
Public method Remove(T) Removes the first occurrence of a specific item from this collection.
Public method RemoveAll(Predicate<T>) Removes all the elements that match the conditions defined by the specified predicate.
Public method RemoveAt(int) Removes the item at the specified index of this collection.
Public method RemoveRange(int, int) Removes a range of items from this collection.
Public method Reverse() Reverses the order of the items in the entire collection. (inherited from EyeshotCollection<T>).
Public method Sort(IComparer<T>) Sorts the items in the entire collection. (inherited from EyeshotCollection<T>).
Public method ToString() (inherited from EyeshotCollection<T>).
Top
Fields
 
Name Description
Internal protected (Protected Friend) field EyeshotDisposableCollection.Workspace The Workspace related to the collection.
Top
Remarks
 
This collection is used in conjunction with the Workspace control.

.NET Framework

Supported in: 4.7.2

In this article

Definition