ObservableListT Class |
Namespace: Atalasoft.PdfDoc.Generating.Shapes
[SerializableAttribute] public class ObservableList<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable
The ObservableListT type exposes the following members.
Name | Description | |
---|---|---|
ObservableListT | Initializes a new instance of the ObservableListT class |
Name | Description | |
---|---|---|
Count |
Gets the number of elements contained in the ICollectionT.
| |
IsReadOnly |
Gets a value indicating whether the ICollectionT is read-only.
| |
Item |
Gets or sets the element at the specified index. Fires an ItemChanged event with a "remove" and then an "add".
|
Name | Description | |
---|---|---|
Add |
Adds an item to the ICollectionT. Fires an ItemChanged "add" event.
| |
Clear |
Removes all items from the ICollectionT. Fires ItemChanged "remove"
events for every item in the list.
| |
Contains |
Determines whether the ICollectionT contains a specific value.
| |
CopyTo |
Copies the elements of the ICollectionT to an Array, starting at a particular Array index.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetEnumerator |
Returns an enumerator that iterates through the collection.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IndexOf |
Determines the index of a specific item in the IListT.
| |
Insert |
Inserts an item to the IListT at the specified index. Fires the
ItemChanged event with an "add".
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnItemChanged |
Raises the [E:ItemChanged] event.
| |
Remove |
Removes the first occurrence of a specific object from the ICollectionT.
Fires the ItemChanged event with a "remove".
| |
RemoveAll |
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 | |
RemoveAt |
Removes the IListT item at the specified index. Fires the ItemChanged event with
a "remove".
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
ItemChanged |
Event for hooking to the list to observe add/remove operations
list.ItemChanged += new EventHandler<AddRemoveEventArgs<MyItemType>>(MyEventHandler); |