DataPlace
ItemCollection<(Of <(T>)>) Class
CSCS.Core.CollectionsItemCollection<(Of <(T>)>)
Generic Item collection with add/remove events Threadsafe for add/insert/remove. Must attain Lock for enumeration Threadsafe events when attached by objects implementing ISynchronizationInvoke
Declaration Syntax
C#
public class ItemCollection<T> : EventedCollection<T>
Generic Template Parameters
T
Members
All MembersConstructorsMethodsPropertiesEvents



IconMemberDescription
ItemCollection<(Of <(T>)>)()()()
Initializes a new instance of the ItemCollection<(Of <(T>)>) class

ItemCollection<(Of <(T>)>)(Boolean)
Initializes a new instance of the ItemCollection<(Of <(T>)>) class

Add(T)
Adds an object to the end of the Collection<(Of <(T>)>).
(Inherited from Collection<(Of <(T>)>).)
AllowSuspend
If true, events can be suspended during normal use. Consumers should handle Resume event to handle bulk updates
(Inherited from EventedCollection<(Of <(T>)>).)
Clear(Boolean)
Clear all items in the collection
(Inherited from EventedCollection<(Of <(T>)>).)
Clear()()()
Removes all elements from the Collection<(Of <(T>)>).
(Inherited from Collection<(Of <(T>)>).)
ClearItems()()()
Clear all items in the collection
(Inherited from EventedCollection<(Of <(T>)>).)
Contains(T)
Determines whether an element is in the Collection<(Of <(T>)>).
(Inherited from Collection<(Of <(T>)>).)
CopyTo(array<T>[]()[], Int32)
Copies the entire Collection<(Of <(T>)>) to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from Collection<(Of <(T>)>).)
Count
Gets the number of elements actually contained in the Collection<(Of <(T>)>).
(Inherited from Collection<(Of <(T>)>).)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
EventsEnabled
exposed to allow external code to disable events intended for dispose operations to avoid threading issues
(Inherited from EventedCollection<(Of <(T>)>).)
Finalize()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetEnumerator()()()
Returns an enumerator that iterates through the Collection<(Of <(T>)>).
(Inherited from Collection<(Of <(T>)>).)
GetHashCode()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
IndexOf(T)
Searches for the specified object and returns the zero-based index of the first occurrence within the entire Collection<(Of <(T>)>).
(Inherited from Collection<(Of <(T>)>).)
Insert(Int32, T)
Inserts an element into the Collection<(Of <(T>)>) at the specified index.
(Inherited from Collection<(Of <(T>)>).)
InsertItem(Int32, T)
Called when a item is added/inserted into the collection
(Inherited from EventedCollection<(Of <(T>)>).)
Item[([(Int32])])
Gets or sets the element at the specified index.
(Inherited from Collection<(Of <(T>)>).)
ItemAdded
occurs when a item is added

ItemAdding
occurs when a item is added

ItemRemoved
occurs when a item is removed

ItemRemoving
occurs when a item is removed

Items
Gets a IList<(Of <(T>)>) wrapper around the Collection<(Of <(T>)>).
(Inherited from Collection<(Of <(T>)>).)
Lock
ReaderWriterLock for use accessing this collection
(Inherited from EventedCollection<(Of <(T>)>).)
MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
OnItemAdded(EventArgs<(Of <(T>)>))
Raises the added event
(Overrides EventedCollection<(Of <(T>)>).OnItemAdded(EventArgs<(Of <(T>)>)).)
OnItemAdding(CancelEventArgs<(Of <(T>)>))
Raises the adding event
(Overrides EventedCollection<(Of <(T>)>).OnItemAdding(CancelEventArgs<(Of <(T>)>)).)
OnItemRemoved(EventArgs<(Of <(T>)>))
Raised the removed event
(Overrides EventedCollection<(Of <(T>)>).OnItemRemoved(EventArgs<(Of <(T>)>)).)
OnItemRemoving(CancelEventArgs<(Of <(T>)>))
Raised the removing event
(Overrides EventedCollection<(Of <(T>)>).OnItemRemoving(CancelEventArgs<(Of <(T>)>)).)
OnResumed(EventArgs) (Overrides EventedCollection<(Of <(T>)>).OnResumed(EventArgs).)
Remove(T)
Removes the first occurrence of a specific object from the Collection<(Of <(T>)>).
(Inherited from Collection<(Of <(T>)>).)
RemoveAt(Int32)
Removes the element at the specified index of the Collection<(Of <(T>)>).
(Inherited from Collection<(Of <(T>)>).)
RemoveItem(Int32)
Remove an item at the specified index
(Inherited from EventedCollection<(Of <(T>)>).)
Resume()()()
Resume add/remove events on this collection after use of Suspend method
(Inherited from EventedCollection<(Of <(T>)>).)
Resumed
occurs when collection resumed

SetItem(Int32, T)
Replaces the element at the specified index.
(Inherited from Collection<(Of <(T>)>).)
Suspend()()()
Temporarily suspend add/remove events on this collection
(Inherited from EventedCollection<(Of <(T>)>).)
ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Inheritance Hierarchy
Object
Collection<(Of <(T>)>)
 EventedCollection<(Of <(T>)>)
  ItemCollection<(Of <(T>)>)

Assembly: CS.Core.Standard.UI (Module: CS.Core.Standard.UI) Version: 1.0.3271.19814