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
SystemObject
  Atalasoft.PdfDoc.Generating.ShapesObservableListT

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

Type Parameters

T

The ObservableListT type exposes the following members.

Constructors
  NameDescription
Public methodObservableListT
Initializes a new instance of the ObservableListT class
Top
Properties
  NameDescription
Public propertyCount
Gets the number of elements contained in the ICollectionT.
Public propertyIsReadOnly
Gets a value indicating whether the ICollectionT is read-only.
Public propertyItem
Gets or sets the element at the specified index. Fires an ItemChanged event with a "remove" and then an "add".
Top
Methods
  NameDescription
Public methodAdd
Adds an item to the ICollectionT. Fires an ItemChanged "add" event.
Public methodClear
Removes all items from the ICollectionT. Fires ItemChanged "remove" events for every item in the list.
Public methodContains
Determines whether the ICollectionT contains a specific value.
Public methodCopyTo
Copies the elements of the ICollectionT to an Array, starting at a particular Array index.
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
Determines the index of a specific item in the IListT.
Public methodInsert
Inserts an item to the IListT at the specified index. Fires the ItemChanged event with an "add".
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnItemChanged
Raises the [E:ItemChanged] event.
Public methodRemove
Removes the first occurrence of a specific object from the ICollectionT. Fires the ItemChanged event with a "remove".
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
Removes the IListT item at the specified index. Fires the ItemChanged event with a "remove".
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldItemChanged
Event for hooking to the list to observe add/remove operations
list.ItemChanged += new EventHandler<AddRemoveEventArgs<MyItemType>>(MyEventHandler);
Top
See Also