Click or drag to resize

ObservableCollectionT Class

imbVeles Framework: imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Represent a collection of items that fire events when it is modified.
Inheritance Hierarchy
SystemObject
  netDxf.CollectionsObservableCollectionT

Namespace:  netDxf.Collections
Assembly:  netDXF.Standard (in netDXF.Standard.dll) Version: 2.1.1
Syntax
C#
public class ObservableCollection<T> : IList<T>, 
	ICollection<T>, IEnumerable<T>, IEnumerable
Request Example View Source

Type Parameters

T
Type of items.

The ObservableCollectionT type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCount
Gets the number of object contained in the collection.
Public propertyIsReadOnly
Gets a value indicating whether the collection is read-only.
Public propertyItem
Gets or sets the object at the specified index.
Top
Methods
  NameDescription
Public methodAdd
Adds an object to the collection.
Public methodAddRange
Adds an object list to the end of the collection.
Public methodClear
Removes all object from the collection.
Public methodContains
Determines whether an object is in the collection.
Public methodCopyTo
Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Searches for the specified object and returns the zero-based index of the first occurrence within the entire collection.
Public methodInsert
Inserts an object into the collection at the specified index.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnAddItemEvent
Protected methodOnBeforeAddItemEvent
Protected methodOnBeforeRemoveItemEvent
Protected methodOnRemoveItemEvent
Public methodRemove(IEnumerableT)
Removes the first occurrence of a specific object from the collection
Public methodRemove(T)
Removes the first occurrence of a specific object from the collection
Public methodRemoveAt
Removes the object at the specified index of the collection.
Public methodReverse
Reverses the order of the elements in the entire list.
Public methodSort
Sorts the elements in the entire System.Collections.Generic.List<T> using the default comparer.
Public methodSort(IComparerT)
Sorts the elements in a range of elements in System.Collections.Generic.List<T> using the specified comparer.
Public methodSort(ComparisonT)
Sorts the elements in the entire System.Collections.Generic.List<T> using the specified System.Comparison<T>.
Public methodSort(Int32, Int32, IComparerT)
Sorts the elements in a range of elements in System.Collections.Generic.List<T> using the specified comparer.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
See Also