Click or drag to resize

ObservableListT Class

Represents a list that generates events when objects are being added or removed. Hooking into the ItemChanged event will allow an application to observe when an item has been added or removed. On a set operation through the array accessor both a remove and add event are fired.
Inheritance Hierarchy

Namespace:  Atalasoft.PdfDoc.Generating.Shapes
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: (.NET 4.5.2, x86)
public class ObservableList<T> : IList<T>, 
	ICollection<T>, IEnumerable<T>, IEnumerable

Type Parameters


The ObservableListT type exposes the following members.

Public methodObservableListT
Initializes a new instance of the ObservableListT class
Public methodAdd
Public methodClear
Public methodContains
Public methodCopyTo
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
Public methodInsert
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnItemChanged
Raises the [E:ItemChanged] event.
Public methodRemove
Public methodRemoveAll
Removes all the elements in the list for which pred returns true. Note that each element will be visited twice.
list.RemoveAll(shape => shape is PdfPath); // remove all paths from the list
Public methodRemoveAt
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public fieldItemChanged
Event for hooking to the list to observe add/remove operations
list.ItemChanged += new EventHandler<AddRemoveEventArgs<MyItemType>>(MyEventHandler);
See Also